Skip to content

Commit

Permalink
fix error name
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Oct 27, 2024
1 parent 48c82da commit e8e0825
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/light-client-verifier/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl<
))
}
} else {
Err(Error::InvalidSingaturePeriod(
Err(Error::UnexpectedSingaturePeriod(
store_period,
update_signature_period,
"signature period must be equal to store_period or store_period+1".into(),
Expand Down
4 changes: 2 additions & 2 deletions crates/light-client-verifier/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ type BoxedTrieError = Box<TrieError<primitive_types::H256, rlp::DecoderError>>;

#[derive(Debug, Display)]
pub enum Error {
/// invalid signature period: `store={0} signature={1} reason={2}`
InvalidSingaturePeriod(SyncCommitteePeriod, SyncCommitteePeriod, String),
/// unexpected signature period: `store={0} signature={1} reason={2}`
UnexpectedSingaturePeriod(SyncCommitteePeriod, SyncCommitteePeriod, String),
/// invalid finalized period: `store={0} finalized={1} reason={2}`
InvalidFinalizedPeriod(SyncCommitteePeriod, SyncCommitteePeriod, String),
/// not finalized period: `finalized={0} attested={1}`
Expand Down

0 comments on commit e8e0825

Please sign in to comment.