From d2c497752fe145b2b74da76c3eb348cb1e551173 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Roy <102650062+so-kkroy22@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:29:55 +0530 Subject: [PATCH] modify pub visibility for MultisigAccountWithSequenceNumber (#114) * modify pub visibility for MultisigAccountWithSequenceNumber * add getter methods --- crates/aptos/src/common/types.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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.