Skip to content

feat(cli): honor --gas-limit for path/custom bytecode fixtures#405

Open
cuiweixie wants to merge 2 commits into
paradigmxyz:mainfrom
cuiweixie:feat/cli-gas-limit-bytecode-fixture
Open

feat(cli): honor --gas-limit for path/custom bytecode fixtures#405
cuiweixie wants to merge 2 commits into
paradigmxyz:mainfrom
cuiweixie:feat/cli-gas-limit-bytecode-fixture

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Pass --gas-limit into fixture_from_bytecode for path and custom (hex/asm) inputs.
  • Set both currentGasLimit and transaction gasLimit from that value instead of hardcoding 0x7fffffffffffffff.
  • Named catalog benches are unchanged (they keep their JSON fixture gas limits).

Test plan

  • cargo r -- run 0x6001600201 --gas-limit 100000 runs successfully
  • Same without --gas-limit uses the default (1000000000)
  • Named bench (cargo r -- run usdc_proxy) still works as before

Wire the existing CLI flag into fixture_from_bytecode so ad-hoc runs
no longer hardcode i64::MAX for block and tx gas limits.
@cuiweixie
cuiweixie requested a review from DaniPopes as a code owner July 15, 2026 14:32
gas_limit is already hex-prefixed; using :x on the String would not compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant