Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

fix: sstore stipend check before charging gas #893

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

enitrat
Copy link
Contributor

@enitrat enitrat commented Sep 3, 2024

The stipend check performed in SSTORE (EIP-1706/EIP-2200) was performed AFTER charging the gas for the SSTORE operation.

It should be performed right after popping the key and value, before charging any gas and modifying any state.


This change is Reviewable

@enitrat enitrat added this pull request to the merge queue Sep 3, 2024
Merged via the queue into main with commit 43b0be8 Sep 3, 2024
4 checks passed
@enitrat enitrat deleted the fix/sstore-stipend-check branch September 3, 2024 13:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants