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

13 lines
277 B
Solidity

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