diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-26 21:46:13 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-27 06:05:09 +0800 |
commit | 6eaf17db38e82a6c26fe63cd0eb715243efc5c70 (patch) | |
tree | 9fc9bf2247301704062b766e40d3a2b684d68de5 /docs | |
parent | bf10cd6c956362789047b4771071417908e9e206 (diff) | |
download | dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.gz dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.bz2 dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.lz dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.xz dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.tar.zst dexon-solidity-6eaf17db38e82a6c26fe63cd0eb715243efc5c70.zip |
Avoid using var if not required
Diffstat (limited to 'docs')
-rw-r--r-- | docs/solidity-by-example.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index e1fd4914..ddbca471 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -289,7 +289,7 @@ activate themselves. /// Withdraw a bid that was overbid. function withdraw() returns (bool) { - var amount = pendingReturns[msg.sender]; + uint amount = pendingReturns[msg.sender]; if (amount > 0) { // It is important to set this to zero because the recipient // can call this function again as part of the receiving call @@ -492,7 +492,7 @@ high or low invalid bids. /// Withdraw a bid that was overbid. function withdraw() returns (bool) { - var amount = pendingReturns[msg.sender]; + uint amount = pendingReturns[msg.sender]; if (amount > 0) { // It is important to set this to zero because the recipient // can call this function again as part of the receiving call |