Fix bugs in example contracts

This commit is contained in:
Alex Beregszaszi
2017-07-13 21:47:29 +02:00
committed by chriseth
parent b2fcd59ee6
commit 41e5b2c3c2
4 changed files with 42 additions and 11 deletions
+5 -3
View File
@@ -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;