Skip to content

Commit

Permalink
Fix libvcx_core
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <[email protected]>
  • Loading branch information
Patrik-Stas committed Aug 20, 2023
1 parent 12dcb23 commit c76b1df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libvcx_core/src/api_vcx/api_handle/issuer_credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,12 @@ pub async fn send_credential_nonmediated(handle: u32, connection_handle: u32) ->
let mut credential = ISSUER_CREDENTIAL_MAP.get_cloned(handle)?;
let con = connection::get_cloned_generic_connection(&connection_handle)?;
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()?, send_message)
.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)?;
Ok(state)
Expand Down

0 comments on commit c76b1df

Please sign in to comment.