aboutsummaryrefslogtreecommitdiffstats
path: root/docs/security-considerations.rst
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-07-11 06:07:27 +0800
committerchriseth <chris@ethereum.org>2017-07-14 03:47:29 +0800
commit41e5b2c3c2a84f395da03bfd4cf5bf8586f9df3f (patch)
tree8b8e9eb1136a3705c2e6b9bff04ba1243832db31 /docs/security-considerations.rst
parentb2fcd59ee6941de4a392b89295c734385d6019e3 (diff)
downloaddexon-solidity-41e5b2c3c2a84f395da03bfd4cf5bf8586f9df3f.tar.gz
dexon-solidity-41e5b2c3c2a84f395da03bfd4cf5bf8586f9df3f.tar.zst
dexon-solidity-41e5b2c3c2a84f395da03bfd4cf5bf8586f9df3f.zip
Fix bugs in example contracts
Diffstat (limited to 'docs/security-considerations.rst')
-rw-r--r--docs/security-considerations.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/security-considerations.rst b/docs/security-considerations.rst
index 33c613d8..658c12b2 100644
--- a/docs/security-considerations.rst
+++ b/docs/security-considerations.rst
@@ -179,11 +179,13 @@ Never use tx.origin for authorization. Let's say you have a wallet contract like
}
}
-Now someone tricks you into sending ether to the address of this attack wallet:
+Now someone tricks you into sending ether to the address of this attack wallet::
-::
+ pragma solidity ^0.4.11;
- pragma solidity ^0.4.0;
+ interface TxUserWallet {
+ function transferTo(address dest, uint amount);
+ }
contract TxAttackWallet {
address owner;