mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
updated public to external for the functions
changed public to external for the functions
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user