Skip to content

Commit

Permalink
modify pub visibility for MultisigAccountWithSequenceNumber (#114)
Browse files Browse the repository at this point in the history
* modify pub visibility for MultisigAccountWithSequenceNumber

* add getter methods
  • Loading branch information
so-kkroy22 authored Oct 23, 2024
1 parent e4ea4bc commit d2c4977
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions crates/aptos/src/common/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1921,6 +1921,12 @@ pub struct MultisigAccount {
pub(crate) multisig_address: AccountAddress,
}

impl MultisigAccount {
pub fn multisig_address(&self) -> AccountAddress {
self.multisig_address
}
}

#[derive(Clone, Debug, Parser, Serialize)]
pub struct MultisigAccountWithSequenceNumber {
#[clap(flatten)]
Expand All @@ -1930,6 +1936,16 @@ pub struct MultisigAccountWithSequenceNumber {
pub(crate) sequence_number: u64,
}

impl MultisigAccountWithSequenceNumber {
pub fn multisig_account(&self) -> &MultisigAccount {
&self.multisig_account
}

pub fn sequence_number(&self) -> u64 {
self.sequence_number
}
}

#[derive(Debug, Parser)]
pub struct TypeArgVec {
/// TypeTag arguments separated by spaces.
Expand Down

0 comments on commit d2c4977

Please sign in to comment.