Skip to content

Commit

Permalink
Rename method
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 11, 2023
1 parent 2fe24c7 commit 97afb5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aries_vcx_core/src/ledger/base_ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion aries_vcx_core/src/ledger/indy_vdr_ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit 97afb5f

Please sign in to comment.