diff options
author | Dimitry <winsvega@mail.ru> | 2016-09-05 19:54:54 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2016-09-05 19:54:54 +0800 |
commit | 183cd70c47e27f2cec34512757860193104f674b (patch) | |
tree | 403ba1d0099bce0377c11d334156bc670a047d40 /docs/security-considerations.rst | |
parent | 341c9436a8b6f5ae49265a482519e165a7f40395 (diff) | |
download | dexon-solidity-183cd70c47e27f2cec34512757860193104f674b.tar.gz dexon-solidity-183cd70c47e27f2cec34512757860193104f674b.tar.zst dexon-solidity-183cd70c47e27f2cec34512757860193104f674b.zip |
add "pragma solidity ^0.4.0;" to code examples
Diffstat (limited to 'docs/security-considerations.rst')
-rw-r--r-- | docs/security-considerations.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/security-considerations.rst b/docs/security-considerations.rst index 7e846674..8800487c 100644 --- a/docs/security-considerations.rst +++ b/docs/security-considerations.rst @@ -51,6 +51,8 @@ complete contract): :: + pragma solidity ^0.4.0; + // THIS CONTRACT CONTAINS A BUG - DO NOT USE contract Fund { /// Mapping of ether shares of the contract. @@ -73,6 +75,8 @@ outlined further below: :: + pragma solidity ^0.4.0; + contract Fund { /// Mapping of ether shares of the contract. mapping(address => uint) shares; @@ -149,6 +153,8 @@ Never use tx.origin for authorization. Let's say you have a wallet contract like :: + pragma solidity ^0.4.0; + contract TxUserWallet { address owner; @@ -166,6 +172,8 @@ Now someone tricks you into sending ether to the address of this attack wallet: :: + pragma solidity ^0.4.0; + contract TxAttackWallet { address owner; |