From da1b56f2b66970251443959180bd6fb97c88ca9e Mon Sep 17 00:00:00 2001 From: Swapnil Tripathi Date: Fri, 20 Oct 2023 04:01:32 +0530 Subject: [PATCH] fix Signed-off-by: Swapnil Tripathi --- uniffi_aries_vcx/core/Cargo.toml | 2 +- uniffi_aries_vcx/core/src/handlers/holder.rs | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/uniffi_aries_vcx/core/Cargo.toml b/uniffi_aries_vcx/core/Cargo.toml index 8610776bd1..534c3c768c 100644 --- a/uniffi_aries_vcx/core/Cargo.toml +++ b/uniffi_aries_vcx/core/Cargo.toml @@ -28,4 +28,4 @@ diddoc_legacy = { path = "../../diddoc_legacy" } url = "2.3.1" [build-dependencies] -uniffi = { version = "0.23.0", features = [ "build", "cli" ] } +uniffi = { version = "0.23.0", features = ["build", "cli"] } diff --git a/uniffi_aries_vcx/core/src/handlers/holder.rs b/uniffi_aries_vcx/core/src/handlers/holder.rs index d4b02db5da..2cce024522 100644 --- a/uniffi_aries_vcx/core/src/handlers/holder.rs +++ b/uniffi_aries_vcx/core/src/handlers/holder.rs @@ -1,8 +1,6 @@ use crate::{core::profile::ProfileHolder, errors::error::VcxUniFFIResult, runtime::block_on}; -use aries_vcx::{ - core::profile::profile::Profile, handlers::issuance::holder::Holder as VcxHolder, - protocols::issuance::holder::state_machine::HolderState as VcxHolderState, -}; +use aries_vcx::handlers::issuance::holder::Holder as VcxHolder; +use aries_vcx::protocols::issuance::holder::state_machine::HolderState as VcxHolderState; use std::sync::{Arc, Mutex}; pub struct Holder { handler: Mutex, @@ -78,6 +76,7 @@ impl Holder { self.handler .lock()? .prepare_credential_request( + profile.inner.wallet(), profile.inner.ledger_read(), profile.inner.anoncreds(), my_pw_did, @@ -111,6 +110,7 @@ impl Holder { .handler .lock()? .process_credential( + profile.inner.wallet(), profile.inner.ledger_read(), profile.inner.anoncreds(), credential, @@ -182,7 +182,11 @@ impl Holder { Ok(self .handler .lock()? - .is_revoked(profile.inner.ledger_read(), profile.inner.anoncreds()) + .is_revoked( + profile.inner.wallet(), + profile.inner.ledger_read(), + profile.inner.anoncreds(), + ) .await?) } @@ -191,7 +195,7 @@ impl Holder { Ok(self .handler .lock()? - .get_cred_rev_id(profile.inner.anoncreds()) + .get_cred_rev_id(profile.inner.wallet(), profile.inner.anoncreds()) .await?) }) }