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

9 lines
176 B
Solidity

contract C {
function f(bytes memory data) public pure returns (uint256) {
return abi.decode(data, (uint256));
}
}
// ----
// f(bytes): 0x20, 0x20, 0x21 -> 33