diff --git a/aries_vcx_core/src/ledger/base_ledger.rs b/aries_vcx_core/src/ledger/base_ledger.rs index 32abf27878..377aba928c 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_arg(&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..7a0568836d 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_arg())), )?; let request = self.append_txn_author_agreement_to_request(request).await?; let response = self.sign_and_submit_request(submitter_did, request).await?;