mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-08 07:58:40 +00:00
core/vm: fix ordering (8037
This commit is contained in:
parent
e66e51e04f
commit
abe23523c4
1 changed files with 4 additions and 4 deletions
|
|
@ -322,8 +322,8 @@ func (evm *EVM) Call(caller common.Address, addr common.Address, input []byte, g
|
|||
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
|
||||
evm.Config.Tracer.OnGasChange(gas.RegularGas, 0, tracing.GasChangeCallFailedExecution)
|
||||
}
|
||||
gas.Exhaust()
|
||||
gasUsed.RegularGas += gas.RegularGas
|
||||
gas.Exhaust()
|
||||
}
|
||||
}
|
||||
return ret, gas, gasUsed, err
|
||||
|
|
@ -379,8 +379,8 @@ func (evm *EVM) CallCode(caller common.Address, addr common.Address, input []byt
|
|||
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
|
||||
evm.Config.Tracer.OnGasChange(gas.RegularGas, 0, tracing.GasChangeCallFailedExecution)
|
||||
}
|
||||
gas.Exhaust()
|
||||
gasUsed.RegularGas += gas.RegularGas
|
||||
gas.Exhaust()
|
||||
}
|
||||
}
|
||||
return ret, gas, gasUsed, err
|
||||
|
|
@ -429,8 +429,8 @@ func (evm *EVM) DelegateCall(originCaller common.Address, caller common.Address,
|
|||
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
|
||||
evm.Config.Tracer.OnGasChange(gas.RegularGas, 0, tracing.GasChangeCallFailedExecution)
|
||||
}
|
||||
gas.Exhaust()
|
||||
gasUsed.RegularGas += gas.RegularGas
|
||||
gas.Exhaust()
|
||||
}
|
||||
}
|
||||
return ret, gas, gasUsed, err
|
||||
|
|
@ -478,8 +478,8 @@ func (evm *EVM) StaticCall(caller common.Address, addr common.Address, input []b
|
|||
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
|
||||
evm.Config.Tracer.OnGasChange(gas.RegularGas, 0, tracing.GasChangeCallFailedExecution)
|
||||
}
|
||||
gas.Exhaust()
|
||||
gasUsed.RegularGas += gas.RegularGas
|
||||
gas.Exhaust()
|
||||
}
|
||||
}
|
||||
return ret, gas, gasUsed, err
|
||||
|
|
|
|||
Loading…
Reference in a new issue