mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
172 B
Solidity
10 lines
172 B
Solidity
contract C {
|
|
bytes s;
|
|
function f(bytes calldata data) external returns (byte) {
|
|
s = data;
|
|
return s[0];
|
|
}
|
|
}
|
|
// ----
|
|
// f(bytes): 0x20, 0x08, "abcdefgh" -> "a"
|