-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(levm): sstore refund logic (#1559)
**Motivation** There was a discrepancies in gas usage and refunds. The issue was related to an improper management of gas refunds in `sstore`. **Description** There was an error when calculating the gas refund. Adjust the conditional logic to subtract refunds when reverting storage changes and adding refunds appropriately. Also, reordered refund and cost logic.
- Loading branch information
1 parent
a2c65eb
commit 3b440a8
Showing
2 changed files
with
32 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters