Skip to content

Commit

Permalink
use correct address
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqjasoria committed Sep 3, 2024
1 parent 9a8672f commit 8dbab7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/vm/operations_verkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ func makeCallVariantGasEIP4762(oldCalculator gasFunc) gasFunc {
if err != nil {
return 0, err
}
if _, isPrecompile := evm.precompile(contract.Address()); isPrecompile {
target := common.Address(stack.Back(1).Bytes20())
if _, isPrecompile := evm.precompile(target); isPrecompile {
return gas, nil
}
wgas := evm.Accesses.TouchAndChargeMessageCall(contract.Address().Bytes())
wgas := evm.Accesses.TouchAndChargeMessageCall(target.Bytes())
if wgas == 0 {
wgas = params.WarmStorageReadCostEIP2929
}
Expand Down

0 comments on commit 8dbab7b

Please sign in to comment.