solidity/test/libsolidity/semanticTests/abiencodedecode/abi_decode_simple.sol
2020-05-26 13:30:37 -05:00

11 lines
274 B
Solidity

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