mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
remove static guard from callcode
This commit is contained in:
parent
012efa11ab
commit
3e07bb4598
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue