diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 00:40:45 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-09-26 02:04:34 +0800 |
commit | e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36 (patch) | |
tree | 58b563fd53b6319a3ada3c5f592c7cb04360a590 /docs/security-considerations.rst | |
parent | 3ca00c73f9bac055f44bb5e3e27fdcb7ced0ee5c (diff) | |
download | dexon-solidity-e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36.tar.gz dexon-solidity-e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36.tar.zst dexon-solidity-e3e9ce53d7c8d5c1228ad7165660c8cb014b0f36.zip |
Set 0.5.x specific example code to be compilable with >0.4.99 <0.6.0 (e.g. 0.5.x only)
Diffstat (limited to 'docs/security-considerations.rst')
-rw-r--r-- | docs/security-considerations.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/security-considerations.rst b/docs/security-considerations.rst index e7c7a0a8..3305c1e1 100644 --- a/docs/security-considerations.rst +++ b/docs/security-considerations.rst @@ -182,7 +182,7 @@ Never use tx.origin for authorization. Let's say you have a wallet contract like :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; // THIS CONTRACT CONTAINS A BUG - DO NOT USE contract TxUserWallet { @@ -202,7 +202,7 @@ Now someone tricks you into sending ether to the address of this attack wallet: :: - pragma solidity >0.4.24; + pragma solidity >0.4.99 <0.6.0; interface TxUserWallet { function transferTo(address payable dest, uint amount) external; |