Skip to content
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

Merged

Conversation

jsign
Copy link
Collaborator

@jsign jsign commented Sep 11, 2024

No description provided.

@@ -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) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image

@@ -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 {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image

@jsign jsign requested a review from gballet September 11, 2024 12:11
@jsign jsign marked this pull request as ready for review September 11, 2024 12:11
Signed-off-by: Ignacio Hagopian <[email protected]>
@jsign jsign force-pushed the jsign-fix-gas-precompiles-scontracts branch from dcfce83 to fbbb499 Compare September 11, 2024 12:12
Copy link
Owner

@gballet gballet left a 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.

@gballet gballet merged commit e920a82 into kaustinen-with-shapella Sep 11, 2024
10 of 13 checks passed
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