solidity/test/libsolidity/syntaxTests/viewPure/view_pure_abi_encode.sol
2018-04-12 00:10:25 +02:00

9 lines
240 B
Solidity

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