github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata/call-dynamic.sol (about)

     1  pragma solidity ^0.4.24;
     2  
     3  contract MyContract {
     4  
     5      uint x = 0;
     6  
     7      function foo(uint _x) {
     8          x = 10 + _x;
     9      }
    10  
    11      function bar() constant returns(uint) {
    12          this.call(bytes4(sha3('foo(uint256)')), 1);
    13          return x; // returns 11
    14      }
    15  }