diff options
author | chriseth <chris@ethereum.org> | 2018-09-18 01:15:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-18 01:15:32 +0800 |
commit | 3c55cfd93663c34ff3d364caf5a0c5d57678cf52 (patch) | |
tree | a522cd335e95414ba9a6003ec93027cca11f6103 | |
parent | 7a19ac629f7bc7cdc652433d3f463af1f45e02d2 (diff) | |
parent | 5272fe660cd9bf1af2d8e6c25ce87e2e775b16ca (diff) | |
download | dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.tar dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.tar.gz dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.tar.bz2 dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.tar.lz dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.tar.xz dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.tar.zst dexon-solidity-3c55cfd93663c34ff3d364caf5a0c5d57678cf52.zip |
Merge pull request #4970 from ethereum/chriseth-patch-6
Updates to examples.
-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. |