Skip to content

Commit

Permalink
fix: wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed May 7, 2024
1 parent 7f35839 commit b396e5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vm/operations_verkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.Back(1).Bytes20()
address := stack.peek().Bytes20()
if _, isPrecompile := evm.precompile(address); isPrecompile {
return 0, nil
}
Expand All @@ -74,7 +74,7 @@ func gasExtCodeHash4762(evm *EVM, contract *Contract, stack *Stack, mem *Memory,

func makeCallVariantGasEIP4762(oldCalculator gasFunc) gasFunc {
return func(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) {
address := stack.peek().Bytes20()
address := stack.Back(1).Bytes20()
gas, err := oldCalculator(evm, contract, stack, mem, memorySize)
if err != nil {
return 0, err
Expand Down

0 comments on commit b396e5b

Please sign in to comment.