diff --git a/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/helpers.rs b/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/helpers.rs index f2f9abacd2..da5575d46a 100644 --- a/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/helpers.rs +++ b/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/helpers.rs @@ -52,7 +52,7 @@ pub async fn did_doc_from_did( did: Did, ) -> Result<(DidDocumentSov, ServiceSov), AriesVcxError> { let service = resolve_service(ledger, &OobService::Did(did.id().to_string())).await?; - let did_url: DidUrl = format!("{}#vm-0", did.to_string()).try_into()?; + let did_url: DidUrl = format!("{}#vm-0", did).try_into()?; let vm = VerificationMethod::builder( did_url, did.clone(), diff --git a/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/mod.rs b/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/mod.rs index 43e43804e9..9f95bac59a 100644 --- a/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/mod.rs +++ b/aries_vcx/src/protocols/did_exchange/state_machine/requester/request_sent/mod.rs @@ -70,7 +70,7 @@ impl DidExchangeRequester { ) -> Result, AriesVcxError> { let (their_did_document, service) = did_doc_from_did(ledger, their_did.clone()).await?; let (our_did_document, _) = did_doc_from_did(ledger, our_did.clone()).await?; - let invitation_id = format!("{}#{}", their_did, service.id().to_string()); + let invitation_id = format!("{}#{}", their_did, service.id()); let request = construct_request(invitation_id.clone(), our_did.to_string());