harb/tools/push3-transpiler/src
openhands 1e75285579 fix: fix: transpiler outputs raw int literals for uint24 anchorWidth — overflow crashes forge (#900)
Clamp anchorWidth output with `% (2**24)` before the uint24 cast so that
large literal values (e.g. 1e18 from evolved constants) produce valid
Solidity instead of a compile-time overflow error.

Add test_transpiler_clamping.sh (Test 5) verifying that a Push3 program
outputting 1e18 for anchorWidth generates `uint24(... % (2**24))` and not
the raw overflowing literal. Update package.json to run both test suites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 06:40:30 +00:00
..
index.ts fix: fix: transpiler outputs raw int literals for uint24 anchorWidth — overflow crashes forge (#900) 2026-03-17 06:40:30 +00:00
parser.ts feat: Push3 → Solidity transpiler + OptimizerV3 port 2026-02-23 14:47:38 +00:00
transpiler.ts fix: package.json missing 'type': 'module' inconsistent with AGENTS.md (#850) 2026-03-16 06:35:05 +00:00