github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-istanbul/f.value.sol (about) 1 pragma solidity ^0.8.4; 2 contract One{ 3 string public word; 4 5 function setMsg(string calldata whatever) public { 6 word = whatever; 7 } 8 function getMsg() public returns(string memory) { 9 return word; 10 } 11 } 12 13 contract Two{ 14 One o; 15 constructor(address one){ 16 o = One(one); 17 o.setMsg("test"); 18 } 19 function getMsg() public returns(string memory){ 20 return o.getMsg(); 21 } 22 }