updated public to external for the functions

changed public to external for the functions
This commit is contained in:
Sreekesh V
2021-08-12 16:24:40 +02:00
committed by hrkrshnn
parent 23b16a1e20
commit 9b9e52e53e
5 changed files with 27 additions and 27 deletions
+4 -4
View File
@@ -87,7 +87,7 @@ you can use state machine-like constructs inside a contract.
/// Can only be called by the seller before
/// the contract is locked.
function abort()
public
external
onlySeller
inState(State.Created)
{
@@ -105,7 +105,7 @@ you can use state machine-like constructs inside a contract.
/// The ether will be locked until confirmReceived
/// is called.
function confirmPurchase()
public
external
inState(State.Created)
condition(msg.value == (2 * value))
payable
@@ -118,7 +118,7 @@ you can use state machine-like constructs inside a contract.
/// Confirm that you (the buyer) received the item.
/// This will release the locked ether.
function confirmReceived()
public
external
onlyBuyer
inState(State.Locked)
{
@@ -134,7 +134,7 @@ you can use state machine-like constructs inside a contract.
/// This function refunds the seller, i.e.
/// pays back the locked funds of the seller.
function refundSeller()
public
external
onlySeller
inState(State.Release)
{