solidity/test/libsolidity/semanticTests/abiEncoderV1/abi_decode_dynamic_array.sol

11 lines
274 B
Solidity
Raw Normal View History

contract C {
function f(bytes calldata data) external pure returns (uint256[] memory) {
return abi.decode(data, (uint256[]));
}
}
2020-05-25 11:40:43 +00:00
// ====
// compileViaYul: also
// ----
// f(bytes): 0x20, 0xc0, 0x20, 0x4, 0x3, 0x4, 0x5, 0x6 -> 0x20, 0x4, 0x3, 0x4, 0x5, 0x6