Refactor configuration validation errors #2589
Labels
I: logic
Internal: related to the relaying logic
O: code-hygiene
Objective: cause to improve code hygiene
O: new-feature
Objective: cause to add a new feature or support
Summary
There are many
ConfigValidation...
errors. These could be refactored using an enum. See comment #2537 (comment).Proposal
Refactor errors related to configuration validation in
relayer/src/errors.rs
in order to have a more elegant enum, which can then be converted to an error.Acceptance Criteria
ConfigValidationJsonRpc
ConfigValidationTxSizeOutOfBounds
ConfigValidationMaxGasTooHigh
ConfigValidationTrustingPeriodSmallerThanZero
ConfigValidationTrustingPeriodGreaterThanUnbondingPeriod
ConfigValidationDefaultGasTooHigh
ConfigValidationGasMultiplierLow
From
For Admin Use
The text was updated successfully, but these errors were encountered: