Commit 6a1abd26 authored by mergify[bot]'s avatar mergify[bot] Committed by GitHub

Merge pull request #4143 from ethereum-optimism/fix/deploy-config-checks

op-chain-ops: add 1559 config checks
parents fad6a6a4 e7e830e8
...@@ -184,6 +184,12 @@ func (d *DeployConfig) Check() error { ...@@ -184,6 +184,12 @@ func (d *DeployConfig) Check() error {
if d.OptimismPortalProxy == (common.Address{}) { if d.OptimismPortalProxy == (common.Address{}) {
return fmt.Errorf("%w: OptimismPortalProxy cannot be address(0)", ErrInvalidDeployConfig) return fmt.Errorf("%w: OptimismPortalProxy cannot be address(0)", ErrInvalidDeployConfig)
} }
if d.EIP1559Denominator == 0 {
return fmt.Errorf("EIP1559Denominator cannot be 0")
}
if d.EIP1559Elasticity == 0 {
return fmt.Errorf("EIP1559Elasticity cannot be 0")
}
return nil return nil
} }
......
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