Commit e7e830e8 authored by Mark Tyneway's avatar Mark Tyneway

op-chain-ops: add 1559 config checks

For both the denominator and elasticity. They cannot be 0.
parent fad6a6a4
...@@ -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