mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 19:46:39 +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()
|
transfersValue = !stack.Back(2).IsZero()
|
||||||
)
|
)
|
||||||
if transfersValue {
|
if transfersValue {
|
||||||
if evm.readOnly {
|
if !evm.chainRules.IsEIP4762 {
|
||||||
return 0, ErrWriteProtection
|
|
||||||
} else if !evm.chainRules.IsEIP4762 {
|
|
||||||
gas += params.CallValueTransferGas
|
gas += params.CallValueTransferGas
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue