diff options
author | chriseth <chris@ethereum.org> | 2018-09-14 00:04:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 00:04:49 +0800 |
commit | 5272fe660cd9bf1af2d8e6c25ce87e2e775b16ca (patch) | |
tree | ea32a884754ad6ad43cc7e7b7f2e3affa2ee34da /docs/solidity-by-example.rst | |
parent | e7daed68c1977683546ac3e72d4f84ff538f6711 (diff) | |
download | dexon-solidity-5272fe660cd9bf1af2d8e6c25ce87e2e775b16ca.tar.gz dexon-solidity-5272fe660cd9bf1af2d8e6c25ce87e2e775b16ca.tar.zst dexon-solidity-5272fe660cd9bf1af2d8e6c25ce87e2e775b16ca.zip |
Updates to examples.
Diffstat (limited to 'docs/solidity-by-example.rst')
-rw-r--r-- | docs/solidity-by-example.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index 0b183ca5..d01886f8 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -220,7 +220,7 @@ bid. If the highest bid is raised, the previously highest bidder gets her money back. After the end of the bidding period, the contract has to be called manually for the -beneficiary to receive his money - contracts cannot +beneficiary to receive their money - contracts cannot activate themselves. :: @@ -241,10 +241,11 @@ activate themselves. // Allowed withdrawals of previous bids mapping(address => uint) pendingReturns; - // Set to true at the end, disallows any change + // Set to true at the end, disallows any change. + // By defaul initialized to `false`. bool ended; - // Events that will be fired on changes. + // Events that will be emitted on changes. event HighestBidIncreased(address bidder, uint amount); event AuctionEnded(address winner, uint amount); @@ -372,7 +373,7 @@ is the same as the one provided during the bidding period. Another challenge is how to make the auction **binding and blind** at the same time: The only way to prevent the bidder from just not sending the money -after he won the auction is to make her send it +after they won the auction is to make her send it together with the bid. Since value transfers cannot be blinded in Ethereum, anyone can see the value. |