github.com/daeglee/go-ethereum@v0.0.0-20190504220456-cad3e8d18e9b/example/test.sol (about) 1 pragma solidity 0.4.18; 2 contract SchdulerContract { 3 uint public n; 4 address public sender; 5 6 function SchdulerContract() public payable{ 7 8 } 9 // change delegateCall() to scheduling method 10 // for MIST 0.9.3 test environment 11 function scheduleSenderChange(uint64 _n) public{ 12 if(this.delegatecall(bytes4(keccak256("setN(uint256)")), _n)){ 13 14 }else{ 15 16 } 17 18 19 } 20 function setN(uint _n) public{ 21 n = _n; 22 sender = msg.sender; 23 } 24 } 25