/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 074e8e13

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": [],
    "value": 0
  },
  "entry": {
    "function": "run",
    "args": [],
    "value": 0
  },
  "feature": "bytesn-implicit-widening-custom-error-abi",
  "note": "Solc implicitly widens bytes2 x = 0x1234 to bytes4 0x12340000 before custom-error ABI encoding. Solidity-lean preserves x's right-aligned internal word (0x1234) when encoding E(bytes4), producing the wrong revert payload."
}
===END-ARENA-MANIFEST=== */

contract T {
    error E(bytes4 x);

    function run() external pure {
        bytes2 x = hex"1234";
        revert E(x);
    }
}