Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Swapnil Tripathi <[email protected]>
  • Loading branch information
swaptr committed Oct 19, 2023
1 parent a7d56b6 commit da1b56f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion uniffi_aries_vcx/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
16 changes: 10 additions & 6 deletions uniffi_aries_vcx/core/src/handlers/holder.rs
Original file line number Diff line number Diff line change
@@ -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<VcxHolder>,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -111,6 +110,7 @@ impl Holder {
.handler
.lock()?
.process_credential(
profile.inner.wallet(),
profile.inner.ledger_read(),
profile.inner.anoncreds(),
credential,
Expand Down Expand Up @@ -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?)
}

Expand All @@ -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?)
})
}
Expand Down

0 comments on commit da1b56f

Please sign in to comment.