solidity/test/libsolidity/semanticTests/abiencodedecode/abi_decode_calldata.sol

15 lines
308 B
Solidity
Raw Normal View History

contract C {
function f(bytes calldata data)
external
pure
returns (uint256, bytes memory r)
{
return abi.decode(data, (uint256, bytes));
}
}
2020-05-25 11:40:43 +00:00
// ====
// compileViaYul: also
// ----
// f(bytes): 0x20, 0x80, 0x21, 0x40, 0x7, "abcdefg" -> 0x21, 0x40, 0x7, "abcdefg"