/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 23be5749

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: UNLICENSED
pragma solidity 0.8.35;

/* ===ARENA-MANIFEST===
{
  "deploy": { "contract": "T", "args": [] },
  "entry": { "function": "run", "args": [] },
  "feature": "fnptr-mapping-struct-field-storage-word",
  "note": "solc+EVM returns 1 and writes the internal-function storage word 197 at the mapping element's struct-field slot; solidity-lean returns 1 but writes dispatch ID 1."
}
===END-ARENA-MANIFEST=== */

contract T {
    struct S { function() internal pure returns (uint256) f; }
    mapping(uint256 => S) m;

    function one() internal pure returns (uint256) { return 1; }

    function run() external returns (uint256) {
        m[1].f = one;
        return m[1].f();
    }
}