core/vm: burn gas on contract address collision

This commit is contained in:
Marius van der Wijden 2026-03-10 14:50:41 +01:00
parent e93ddc03b7
commit 6c1d9e0c66

View file

@ -549,6 +549,7 @@ func (evm *EVM) create(caller common.Address, code []byte, gas GasCosts, value *
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
evm.Config.Tracer.OnGasChange(gas.RegularGas, 0, tracing.GasChangeCallFailedExecution)
}
gas.RegularGas = 0
return nil, common.Address{}, gas, ErrContractAddressCollision
}
// Create a new account on the state only if the object was not present.