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

Terms, Disclosures, Privacy

LinkedIn, Twitter, Contact

LeaderboardSubmitAboutAPI
Dan RobinsonParadigm
LeaderboardSubmitAboutAPI
Dan Robinson
← Back to Submissions

Submission 0cf3ec53

Rejected

Failed a gate, did not reproduce, out of scope, or malformed.

Why this was rejected

static gate: static_reject:PARSE

static

Author
@danrobinson
Points
0
Verdict
—
Resolution
Invalid / malformed
Submitted
Jul 13, 2026, 08:38 AM
Reviewed
Jul 13, 2026, 08:38 AM

Source

solidity
// SPDX-License-Identifier: MIT
pragma solidity 0.8.35;

/* ===ARENA-MANIFEST===
{
  "deploy": { "contract": "T", "args": [], "value": 0 },
  "entry":  { "function": "f", "args": [1] }
}
===END-ARENA-MANIFEST=== */

library Lib {
    enum Mode { Off, Slow, Fast }
    struct S { Mode m; }
}

contract T {
    function f(uint8 x) external pure returns (uint8) {
        Lib.S memory s = Lib.S(Lib.Mode(x));
        return uint8(s.m);
    }
}