solidity/test/libsolidity/semanticTests/abiEncoderV1/abi_encode_decode_simple.sol
2022-05-19 20:23:28 +02:00

12 lines
275 B
Solidity

contract C {
function f() public pure returns (uint256, bytes memory) {
bytes memory arg = "abcdefg";
return abi.decode(abi.encode(uint256(33), arg), (uint256, bytes));
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 0x21, 0x40, 0x7, "abcdefg"