-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(levm): fix call stipend in CALL, CALLCODE (#1562)
**Motivation** There is a miscalculation in the new callframe gas_limit because of the 2600 STIPEND in value transfer calls **Description** - Group the calculation of the gas_cost and the gas_limit for the new subcontext in the gas_cost module as this values are closely related. - The gas_cost now includes the gas for the subcall - When we reach the function `generic_call` in case of `REVERT_FOR_CALL` we return only the value of `gas_limit` - After executing the `new_call_frame` we return the remaining gas from the `new_call_frame`
- Loading branch information
Showing
2 changed files
with
130 additions
and
97 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
Oops, something went wrong.