You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(benchmark): add gas exhaustion validation using expected_receipt
Implement solution to address reviewer's concern about test validation by using
EEST's expected_receipt feature to validate that benchmarks consume all gas.
Changes:
- Add TransactionReceipt import
- Add expected_receipt to both test transactions validating gas_used equals gas_limit
- Remove skip_gas_used_validation flag as validation is now explicit
This ensures tests can distinguish between:
- Early failure from invalid jump (~50K gas) indicating setup issues
- Full gas exhaustion (all gas consumed) indicating successful benchmark run
The invalid jump remains as a fail-fast mechanism for STATICCALL failures,
while expected_receipt validates the benchmark actually executed.
0 commit comments