diff options
author | chriseth <chris@ethereum.org> | 2017-05-03 18:02:46 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-03 18:07:15 +0800 |
commit | e9458be7bdebf3fdabc9a5a63e372a56deaa9f5a (patch) | |
tree | fe5c167cb6274dc9df9ff98a88ad4f2fe5f0f157 /docs | |
parent | d58a4e08daba3a672a3494402b2d448c704dd69e (diff) | |
download | dexon-solidity-e9458be7bdebf3fdabc9a5a63e372a56deaa9f5a.tar.gz dexon-solidity-e9458be7bdebf3fdabc9a5a63e372a56deaa9f5a.tar.zst dexon-solidity-e9458be7bdebf3fdabc9a5a63e372a56deaa9f5a.zip |
Parentheses.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/solidity-by-example.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index 3d352843..4ed474df 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -268,7 +268,7 @@ activate themselves. // Revert the call if the bidding // period is over. - require(now <= auctionStart + biddingTime); + require(now <= (auctionStart + biddingTime)); // If the bid is not higher, send the // money back. @@ -543,7 +543,7 @@ Safe Remote Purchase function Purchase() payable { seller = msg.sender; value = msg.value / 2; - require(2 * value == msg.value); + require((2 * value) == msg.value); } modifier condition(bool _condition) { @@ -588,7 +588,7 @@ Safe Remote Purchase /// is called. function confirmPurchase() inState(State.Created) - condition(msg.value == 2 * value) + condition(msg.value == (2 * value)) payable { purchaseConfirmed(); |