mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Add check to have pre-Homestead behavior on code store error (#2749)
* Add check to have pre-Homestead behavior on code store error * Fix linter error
This commit is contained in:
parent
2afd028d3d
commit
e19dcd89fc
@ -553,7 +553,7 @@ func (evm *EVM) create(caller ContractRef, codeAndHash *codeAndHash, gas uint64,
|
||||
createDataGas := uint64(len(ret)) * params.CreateDataGas
|
||||
if contract.UseGas(createDataGas) {
|
||||
evm.IntraBlockState.SetCode(address, ret)
|
||||
} else {
|
||||
} else if evm.ChainRules.IsHomestead {
|
||||
err = ErrCodeStoreOutOfGas
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user