github.com/annchain/OG@v0.0.9/vm/vm_test/contracts/caller.sol (about)

     1  pragma solidity ^0.4.20;
     2  
     3  interface setter {
     4      function set(uint n) external;
     5  }
     6  
     7  contract caller {
     8      
     9      address public callee;
    10      setter public ster;
    11      
    12      function caller() public {
    13          callee = 0x2fd82147682e011063adb8534b2d1d8831f52969;
    14          ster = setter(callee);
    15      }
    16      
    17      function callSetter(uint256 value) public {
    18          ster.set(value);
    19      }
    20  }
    21