From 436db3b10c5b3a7f103bdf33d3e8d227952fc25c Mon Sep 17 00:00:00 2001 From: Patrik Stas Date: Fri, 11 Aug 2023 12:37:46 +0200 Subject: [PATCH] Rename method Signed-off-by: Patrik Stas --- aries_vcx_core/src/ledger/base_ledger.rs | 2 +- aries_vcx_core/src/ledger/indy_vdr_ledger.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aries_vcx_core/src/ledger/base_ledger.rs b/aries_vcx_core/src/ledger/base_ledger.rs index 32abf27878..2441c064b8 100644 --- a/aries_vcx_core/src/ledger/base_ledger.rs +++ b/aries_vcx_core/src/ledger/base_ledger.rs @@ -22,7 +22,7 @@ pub enum IndyRole { } impl IndyRole { - pub fn as_str(&self) -> &'static str { + pub fn as_indyvdr_repr(&self) -> &'static str { match self { IndyRole::Steward => "STEWARD", IndyRole::Trustee => "TRUSTEE", diff --git a/aries_vcx_core/src/ledger/indy_vdr_ledger.rs b/aries_vcx_core/src/ledger/indy_vdr_ledger.rs index 80278b1dd2..e7c770efc5 100644 --- a/aries_vcx_core/src/ledger/indy_vdr_ledger.rs +++ b/aries_vcx_core/src/ledger/indy_vdr_ledger.rs @@ -328,7 +328,7 @@ where Some(target_vk.into()), alias, // todo: this is ugly, but needs to be fixed on indy-vdr side - it should work with enums, not strings - Some(String::from(role.as_str())), + Some(String::from(role.as_indyvdr_repr())), )?; let request = self.append_txn_author_agreement_to_request(request).await?; let response = self.sign_and_submit_request(submitter_did, request).await?;