chapter19-code-2
Thu Mar 30 2023 11:29:41 GMT+0000 (Coordinated Universal Time)
Saved by
@RareSkills
contract ExampleContract {
function askTheMeaningOfLife(address source) public returns (uint256) {
(bool ok, bytes memory result) = source.call(abi.encodeWithSignature("meaningOfLifeAndAllExistence()"));
require(ok, "call failed");
//return abi.decode(result, (uint256));
return 0;
}
}
content_copyCOPY
Comments