Commit 0bd39197 authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #4580 from ethereum-optimism/fix/deploy-config-validation-3

op-chain-ops: do not allow 0 scalar
parents 46b97b27 274b3560
...@@ -169,7 +169,7 @@ func (d *DeployConfig) Check() error { ...@@ -169,7 +169,7 @@ func (d *DeployConfig) Check() error {
log.Warn("GasPriceOracleOverhead is 0") log.Warn("GasPriceOracleOverhead is 0")
} }
if d.GasPriceOracleScalar == 0 { if d.GasPriceOracleScalar == 0 {
log.Warn("GasPriceOracleScalar is 0") return fmt.Errorf("%w: GasPriceOracleScalar cannot be 0", ErrInvalidDeployConfig)
} }
if d.L1StandardBridgeProxy == (common.Address{}) { if d.L1StandardBridgeProxy == (common.Address{}) {
return fmt.Errorf("%w: L1StandardBridgeProxy cannot be address(0)", ErrInvalidDeployConfig) return fmt.Errorf("%w: L1StandardBridgeProxy cannot be address(0)", ErrInvalidDeployConfig)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment