-
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): fix various kind of errors in opcodes (#1424)
**Motivation** <!-- Why does this pull request exist? What are its goals? --> - Generic Call works well for basic call cases but it handles poorly some scenarios, and we still have to figure out how to solve the stack overflow problem when depth is too high. - Fix other things I see along the way **Description** <!-- A clear and concise general description of the changes this PR introduces --> - It replaces `OpcodeSuccess::Stop` for `OpcodeSuccess::Continue` in some cases because we don't want to stop execution of current callframe, we just want to push to it's stack and continue. - It fixes `op_gas`, that previously was calculated based on used gas in environment, and it should be based upon used gas in current callframe. - It fixes `op_gaslimit`, that previously returned the transaction gaslimit, when instead it should return the block's gas limit. **Status** - Tests passing with current changes: 1930/4100 <!-- Link to issues: Resolves #111, Resolves #222 -->
- Loading branch information
Showing
4 changed files
with
8 additions
and
11 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
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