Thanks for the feedback
I agree that saturating_sub may mask incorrect gas accounting.
Would you prefer:
- an explicit fork-check (Cancun vs Prague), or
- guarding the subtraction with a conditional + debug assertion, or
- returning early when gas < stipend inside pauseGasMetering?
Happy to rework this to preserve gas semantics while avoiding the panic.
Originally posted by @subwaycookiecrunch in #12861 (comment)