Skip to content

Commit

Permalink
post-rebase conflict resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
  • Loading branch information
Patrik-Stas committed Aug 20, 2023
1 parent 096e257 commit 3577527
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions aries_vcx/src/protocols/issuance/holder/state_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ use messages::msg_fields::protocols::notification::ack::{AckDecorators, AckStatu
use messages::msg_fields::protocols::report_problem::ProblemReport;
use messages::AriesMessage;
use uuid::Uuid;
use messages::msg_fields::protocols::cred_issuance::CredentialIssuance;

use crate::common::credentials::{get_cred_rev_id, is_cred_revoked};
use crate::errors::error::prelude::*;
use crate::global::settings;
use crate::handlers::util::{get_attach_as_string, make_attach_from_str, verify_thread_id, AttachmentId, Status, verify_thread_id};
use crate::handlers::util::{
get_attach_as_string, make_attach_from_str, verify_thread_id, AttachmentId, Status,
};
use crate::protocols::common::build_problem_report_msg;
use crate::protocols::issuance::holder::states::finished::FinishedHolderState;
use crate::protocols::issuance::holder::states::initial::InitialHolderState;
Expand Down
5 changes: 4 additions & 1 deletion aries_vcx/src/protocols/issuance/issuer/state_machine.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
use std::fmt::Display;
use std::sync::Arc;

use crate::handlers::util::{get_attach_as_string, make_attach_from_str, matches_opt_thread_id, verify_thread_id, AttachmentId, OfferInfo, Status};
use crate::handlers::util::{
get_attach_as_string, make_attach_from_str, matches_opt_thread_id, verify_thread_id, AttachmentId, OfferInfo,
Status,
};
use aries_vcx_core::anoncreds::base_anoncreds::BaseAnonCreds;
use aries_vcx_core::ledger::base_ledger::AnoncredsLedgerRead;
use chrono::Utc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use messages::AriesMessage;

use crate::common::proofs::proof_request::PresentationRequestData;
use crate::errors::error::prelude::*;
use crate::handlers::util::{make_attach_from_str, AttachmentId, Status, verify_thread_id};
use crate::handlers::util::{make_attach_from_str, verify_thread_id, AttachmentId, Status};
use crate::protocols::common::build_problem_report_msg;
use crate::protocols::proof_presentation::verifier::states::finished::FinishedState;
use crate::protocols::proof_presentation::verifier::states::initial::InitialVerifierState;
Expand Down
4 changes: 1 addition & 3 deletions libvcx_core/src/api_vcx/api_handle/issuer_credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ pub async fn send_credential_nonmediated(handle: u32, connection_handle: u32) ->
let wallet = get_main_wallet()?;
let send_message: SendClosure =
Box::new(|msg: AriesMessage| Box::pin(async move { con.send_message(&wallet, &msg, &HttpClient).await }));
credential
.build_credential(&get_main_anoncreds()?)
.await?;
credential.build_credential(&get_main_anoncreds()?).await?;
credential.send_credential(send_message).await;
let state: u32 = credential.get_state().into();
ISSUER_CREDENTIAL_MAP.insert(handle, credential)?;
Expand Down

0 comments on commit 3577527

Please sign in to comment.