solidity/test/libsolidity/semanticTests/calldata/calldata_bytes_to_storage.sol
2020-09-02 09:39:28 +02:00

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"