remove static guard from callcode

This commit is contained in:
Jared Wasinger 2026-02-02 16:43:29 -05:00
parent 012efa11ab
commit 3e07bb4598

View file

@ -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
}
}