mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix bugs in example contracts
This commit is contained in:
committed by
chriseth
parent
b2fcd59ee6
commit
41e5b2c3c2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user