good morning!!!!

Skip to content
Snippets Groups Projects
Commit 23b51a68 authored by Martin Holst Swende's avatar Martin Holst Swende Committed by Felix Lange
Browse files

core/vm: avoid state lookup during gas calc for call (#15061)

parent dc92779c
No related branches found
No related tags found
No related merge requests found
......@@ -324,7 +324,7 @@ func gasCall(gt params.GasTable, evm *EVM, contract *Contract, stack *Stack, mem
eip158 = evm.ChainConfig().IsEIP158(evm.BlockNumber)
)
if eip158 {
if evm.StateDB.Empty(address) && transfersValue {
if transfersValue && evm.StateDB.Empty(address) {
gas += params.CallNewAccountGas
}
} else if !evm.StateDB.Exist(address) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment