Skip to content

Commit

Permalink
Fixes wrong error type for ibc envelope
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Sep 16, 2024
1 parent b11c556 commit 41583eb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/ibc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ pub enum Error {
ChainId(IdentifierError),
#[error("Verifier insertion error: {0}")]
Verifier(StorageError),
#[error("IBC error: {0}")]
Other(String),
}

impl From<Error> for StorageError {
Expand Down Expand Up @@ -672,11 +674,9 @@ where
{
self.verifiers.borrow_mut().insert(
Address::from_str(verifier.as_ref()).map_err(|_| {
Error::NftTransfer(NftTransferError::Other(
format!(
"Cannot convert the address {}",
verifier
),
Error::Other(format!(
"Cannot convert the address {}",
verifier,
))
})?,
);
Expand Down

0 comments on commit 41583eb

Please sign in to comment.