mirror of https://github.com/ConsenSys/mythril
parent
c4984cce08
commit
e2eee11218
@ -0,0 +1,33 @@ |
||||
pragma solidity ^0.4.17; |
||||
|
||||
contract Callee { |
||||
function theFunction() payable { |
||||
} |
||||
} |
||||
|
||||
contract Caller { |
||||
|
||||
address public fixed_address; |
||||
address public stored_address; |
||||
|
||||
function Caller(address addr) { |
||||
fixed_address = addr; |
||||
} |
||||
|
||||
function thisisfine() public { |
||||
Callee(fixed_address).theFunction(); |
||||
} |
||||
|
||||
function calluseraddress(address addr) { |
||||
addr.call(); |
||||
} |
||||
|
||||
function callstoredaddress() { |
||||
stored_address.call(); |
||||
} |
||||
|
||||
function setstoredaddress(address addr) { |
||||
stored_address = addr; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue