diff --git a/core/vm/evm.go b/core/vm/evm.go index 70d13d00bd..bf11ffb7a6 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -492,7 +492,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64, if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil { evm.Config.Tracer.OnGasChange(gas, gas-statelessGas, tracing.GasChangeWitnessContractCollisionCheck) } - gas = gas - statelessGas + contract.Gas = contract.Gas - statelessGas } // We add this to the access list _before_ taking a snapshot. Even if the @@ -540,7 +540,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64, if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil { evm.Config.Tracer.OnGasChange(gas, gas-statelessGas, tracing.GasChangeWitnessContractInit) } - gas = gas - statelessGas + contract.Gas = contract.Gas - statelessGas } evm.Context.Transfer(evm.StateDB, caller.Address(), address, value)