Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unwrap()
Browse files Browse the repository at this point in the history
Signed-off-by: Swapnil Tripathi <swapnil06.st@gmail.com>
swaptr committed Oct 18, 2023
1 parent 4acedf5 commit 147c71b
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
@@ -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> {

0 comments on commit 147c71b

Please sign in to comment.