-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vm: spec fixes #493
vm: spec fixes #493
Conversation
@@ -61,7 +61,7 @@ func gasExtCodeSize4762(evm *EVM, contract *Contract, stack *Stack, mem *Memory, | |||
|
|||
func gasExtCodeHash4762(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { | |||
address := stack.peek().Bytes20() | |||
if _, isPrecompile := evm.precompile(address); isPrecompile { | |||
if _, isPrecompile := evm.precompile(address); isPrecompile || evm.isSystemContract(address) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -132,6 +132,10 @@ func gasExtCodeCopyEIP4762(evm *EVM, contract *Contract, stack *Stack, mem *Memo | |||
return 0, err | |||
} | |||
addr := common.Address(stack.peek().Bytes20()) | |||
|
|||
if _, isPrecompile := evm.precompile(addr); isPrecompile { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Ignacio Hagopian <[email protected]>
dcfce83
to
fbbb499
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I was a bit surprised to only see the 2935 contract in the list, but it makes sense, since this is the only one for Shanghai.
No description provided.