solidity/test/libsolidity/syntaxTests/viewPure/view_pure_abi_encode.sol

9 lines
247 B
Solidity
Raw Normal View History

2018-03-21 17:38:06 +00:00
contract C {
function f() pure public returns (bytes memory r) {
2018-03-21 17:38:06 +00:00
r = abi.encode(1, 2);
r = abi.encodePacked(f());
r = abi.encodeWithSelector(0x12345678, 1);
r = abi.encodeWithSignature("f(uint256)", 4);
}
}