diff --git a/core/vm/operations_verkle.go b/core/vm/operations_verkle.go index b36de9604e60..2610364ab24d 100644 --- a/core/vm/operations_verkle.go +++ b/core/vm/operations_verkle.go @@ -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 } @@ -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