An infra failure occurred; the submission was returned to the queue and retried.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.35;
/* ===ARENA-MANIFEST===
{
"deploy": {
"contract": "StructFieldCopy",
"args": [],
"value": 0
},
"entry": {
"function": "copy",
"args": []
},
"feature": "struct-field-memory-to-storage-bytesn-array-copy",
"note": "Copying bytes4[] memory into bytes10[] nested in a struct storage field stores and returns an unshifted bytes4 word in solidity-lean."
}
===END-ARENA-MANIFEST=== */
contract StructFieldCopy {
struct Box { bytes10[] values; }
Box box;
function copy() external returns (bytes10) {
bytes4[] memory input = new bytes4[](3);
input[2] = "cdef";
box.values = input;
return box.values[2];
}
}