Skip to content

Commit

Permalink
remove unwrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
swaptr committed Oct 11, 2023
1 parent 8a1b613 commit d1d9730
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions uniffi_aries_vcx/core/src/handlers/holder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,13 @@ impl Holder {
anoncreds: &impl BaseAnonCreds,
my_pw_did: String,
) -> VcxUniFFIResult<()> {
// FIXME: remove .unwrap()
block_on(async {
self.handler
.lock()
.unwrap()
.lock()?
.prepare_credential_request(ledger, anoncreds, my_pw_did)
.await
.unwrap();
});
Ok(())
.await?;
Ok(())
})
}

pub fn get_msg_credential_request(&self) -> VcxUniFFIResult<RequestCredentialV1> {
Expand Down

0 comments on commit d1d9730

Please sign in to comment.