From 3e07bb459833c0078034002ba122ca5d4b333df6 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Mon, 2 Feb 2026 16:43:29 -0500 Subject: [PATCH] remove static guard from callcode --- core/vm/gas_table.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index 8442d0b48f..0f4fa124aa 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -461,9 +461,7 @@ func gasCallCodeStateless(evm *EVM, contract *Contract, stack *Stack, mem *Memor transfersValue = !stack.Back(2).IsZero() ) if transfersValue { - if evm.readOnly { - return 0, ErrWriteProtection - } else if !evm.chainRules.IsEIP4762 { + if !evm.chainRules.IsEIP4762 { gas += params.CallValueTransferGas } }