github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-istanbul/call-dynamic.sol (about) 1 pragma solidity ^0.8.4; 2 3 contract MyContract { 4 5 uint x = 0; 6 7 function foo(uint256 _x) public { 8 x = 10 + _x; 9 } 10 11 function bar() public returns(uint) { 12 address(this).call(abi.encodeWithSignature('foo(uint256)', 1)); 13 return x; // returns 11 14 } 15 }