solidity/test/libsolidity/syntaxTests/array/bytes_to_fixed_bytes.sol
2021-04-23 13:19:19 +02:00

7 lines
223 B
Solidity

contract C {
bytes s;
function f(bytes calldata c, string memory m) public view returns (bytes3, bytes8, bytes16, bytes32) {
return (bytes3(c[0:3]), bytes8(s), bytes16(c), bytes32(bytes(m)));
}
}
// ----