Skip to content

Keep readonly value while changing interpreters back and forth#2508

Merged
AskAlexSharov merged 7 commits into
develfrom
keep-readonly-for-tevm-interpreter
Aug 10, 2021
Merged

Keep readonly value while changing interpreters back and forth#2508
AskAlexSharov merged 7 commits into
develfrom
keep-readonly-for-tevm-interpreter

Conversation

@JekaMas
Copy link
Copy Markdown
Contributor

@JekaMas JekaMas commented Aug 9, 2021

No description provided.

Comment thread core/vm/evm.go Outdated
// run runs the given contract and takes care of running precompiles with a fallback to the byte code interpreter.
func run(evm *EVM, contract *Contract, input []byte, readOnly bool) ([]byte, error) {
callback, err := selectInterpreter(evm, contract)
defer callback()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably err check must be before defer callback()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

has been changed

@AskAlexSharov AskAlexSharov merged commit 4cd72c8 into devel Aug 10, 2021
@AskAlexSharov AskAlexSharov deleted the keep-readonly-for-tevm-interpreter branch August 10, 2021 02:48
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.

2 participants