Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openwallet-foundation/vcx
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: de2c53c0672fdf2cc5e6b192ea8cef9bc9a0ac69
Choose a base ref
..
head repository: openwallet-foundation/vcx
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4fb71e5d18112fd58a3c9ab847f0cfcb168d279b
Choose a head ref
Showing with 3 additions and 6 deletions.
  1. +2 −1 agents/rust/aries-vcx-agent/src/services/holder.rs
  2. +1 −5 libvcx_core/src/api_vcx/api_handle/credential.rs
3 changes: 2 additions & 1 deletion agents/rust/aries-vcx-agent/src/services/holder.rs
Original file line number Diff line number Diff line change
@@ -98,7 +98,8 @@ impl ServiceCredentialsHolder {
let send_closure: SendClosure = Box::new(|msg: AriesMessage| {
Box::pin(async move { connection.send_message(&wallet, &msg, &HttpClient).await })
});
holder.build_credential_request(
holder
.build_credential_request(
&self.profile.inject_anoncreds_ledger_read(),
&self.profile.inject_anoncreds(),
pw_did,
6 changes: 1 addition & 5 deletions libvcx_core/src/api_vcx/api_handle/credential.rs
Original file line number Diff line number Diff line change
@@ -232,11 +232,7 @@ pub async fn send_credential_request(handle: u32, connection_handle: u32) -> Lib
let my_pw_did = mediated_connection::get_pw_did(connection_handle)?;
let send_message = mediated_connection::send_message_closure(connection_handle).await?;
credential
.build_credential_request(
&get_main_anoncreds_ledger_read()?,
&get_main_anoncreds()?,
my_pw_did
)
.build_credential_request(&get_main_anoncreds_ledger_read()?, &get_main_anoncreds()?, my_pw_did)
.await?;
credential.send_credential_request(send_message).await?;
HANDLE_MAP.insert(handle, credential)