2020-03-09 21:14:07 +00:00
|
|
|
contract C {
|
|
|
|
function f(bytes memory data) public pure returns (uint256) {
|
|
|
|
return abi.decode(data, (uint256));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-05-25 11:40:43 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// f(bytes): 0x20, 0x20, 0x21 -> 33
|