diff --git a/crates/aptos/src/common/types.rs b/crates/aptos/src/common/types.rs index f5a142fee2241..f9149a4b36986 100644 --- a/crates/aptos/src/common/types.rs +++ b/crates/aptos/src/common/types.rs @@ -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)] @@ -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.