Skip to content

Emit consume_all_gas in invalid and bounds checks#433

Merged
xermicus merged 1 commit intomainfrom
cl/consume-all-gas
Dec 16, 2025
Merged

Emit consume_all_gas in invalid and bounds checks#433
xermicus merged 1 commit intomainfrom
cl/consume-all-gas

Conversation

@xermicus
Copy link
Copy Markdown
Member

Closes #374

Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
@xermicus xermicus requested a review from kvpanch December 15, 2025 15:15
@xermicus xermicus merged commit 9446132 into main Dec 16, 2025
14 checks passed
@xermicus xermicus deleted the cl/consume-all-gas branch December 16, 2025 09:05
github-merge-queue bot pushed a commit to paritytech/polkadot-sdk that referenced this pull request Mar 3, 2026
Fixes paritytech/contract-issues#206

This PR enables the call_invalid_opcode test, which verifies that the
INVALID opcode consumes all forwarded gas when executed in a nested
call. The underlying issue was fixed in the following PRs:
paritytech/revive#433
#9997

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Robert van Eerdewijk <robertvaneerdewijk@gmail.com>
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.

The WordToPointer RuntimeFunction implementation should consume all gas on OOB

2 participants