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

     1  pragma solidity ^0.4.24;
     2  contract One{
     3      string public word;
     4  
     5      function setMsg(string whatever) {
     6          word = whatever;
     7      }
     8      function getMsg() returns(string) {
     9          return word;
    10      }
    11  }
    12  
    13  contract Two{
    14      One o;
    15     function Two(address one){
    16         o = One(one);
    17         o.setMsg("test");
    18     }
    19     function getMsg() returns(string){
    20         return o.getMsg();
    21     }
    22  }