|
|
|
@ -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) |
|
|
|
|
|
|
|
|
|