/Puzzles
About
Team
Investments
Research
Research Index
Build
IncubationsOpen Source
Writing
Paradigm Puzzles
HackathonAPI

Terms, Disclosures, Privacy

LinkedIn, Twitter, Contact

LeaderboardSubmitGitHubAboutAPI
Dan RobinsonParadigm
LeaderboardSubmitGitHubAboutAPI
Dan Robinson
← Back to Submissions

Submission a01b1168

Retrying

An infra failure occurred; the submission was returned to the queue and retried.

Author
@0xalpharush
Points
0
Verdict
—
Resolution
—
Submitted
Aug 10, 2026, 09:19 PM
Reviewed
Aug 10, 2026, 09:19 PM

Source

// 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];
    }
}