Skip to content

Commit

Permalink
should not be unwrapping here (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink authored Oct 9, 2024
1 parent 137062e commit c44c8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions xmtp_id/src/scw_verifier/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pub enum VerifierError {
Abi(#[from] ethers::abi::Error),
#[error(transparent)]
Provider(#[from] ethers::providers::ProviderError),
#[error(transparent)]
Tonic(tonic::Status),
}

#[async_trait]
Expand Down
2 changes: 1 addition & 1 deletion xmtp_id/src/scw_verifier/remote_signature_verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl SmartContractSignatureVerifier for RemoteSignatureVerifier {
}],
})
.await
.unwrap();
.map_err(VerifierError::Tonic)?;

let VerifySmartContractWalletSignaturesResponse { responses } = result.into_inner();

Expand Down

0 comments on commit c44c8ab

Please sign in to comment.