solidity/test/libsolidity/syntaxTests/viewPureChecker/view_pure_abi_encode.sol
2021-04-20 17:38:29 +02:00

10 lines
255 B
Solidity

contract C {
function f() pure public returns (bytes memory r) {
r = abi.encode(1, 2);
r = abi.encodePacked(f());
r = abi.encodeWithSelector(0x12345678, 1);
r = abi.encodeWithSignature("f(uint256)", 4);
}
}
// ----