mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
300 B
Solidity
10 lines
300 B
Solidity
contract C {
|
|
function f(bytes calldata data) external returns (bytes memory) {
|
|
return abi.encode(bytes(data));
|
|
}
|
|
}
|
|
// ====
|
|
// compileViaYul: also
|
|
// ----
|
|
// f(bytes): 0x20, 0x08, "abcdefgh" -> 0x20, 0x60, 0x20, 8, 44048183304486788309563647967830685498285570828042699209880294173606615711744
|