Skip to content

Commit f147cdc

Browse files
committed
fix
Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent 09be3aa commit f147cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/vm/instructions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ func opCreate2(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]
762762
func chargeCallVariantEIP4762(evm *EVM, scope *ScopeContext) bool {
763763
target := common.Address(scope.Stack.Back(1).Bytes20())
764764
if _, isPrecompile := evm.precompile(target); isPrecompile {
765-
return true
765+
return scope.Contract.UseGas(params.WarmStorageReadCostEIP2929)
766766
}
767767
// The charging for the value transfer is done BEFORE subtracting
768768
// the 1/64th gas, as this is considered part of the CALL instruction.

0 commit comments

Comments
 (0)