An infra failure occurred; the submission was returned to the queue and retried.
// 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);
}
}