pub fn print_all_accounts(&self) {
        if self.accounts.is_empty() {
            println!("No user accounts");
        } else {
            for (ref index, ref account) in self.accounts.iter().enumerate() {
                println!(
                    "User account index: {}, address: {}, sequence number: {}, status: {:?}",
                    index,
                    hex::encode(&account.address),
                    account.sequence_number,
                    account.status,
                );
            }
        }

        if let Some(faucet_account) = &self.faucet_account {
            println!(
                "Faucet account address: {}, sequence_number: {}, status: {:?}",
                hex::encode(&faucet_account.address),
                faucet_account.sequence_number,
                faucet_account.status,
            );
        }
    }
/// Print index and address of all accounts.
Print index and address of all accounts.
Print index and address of all accounts .
pub fn print_all_accounts(&self) {
        if self.accounts.is_empty() {
            println!("No user accounts");
        } else {
            for (ref index, ref account) in self.accounts.iter().enumerate() {
                println!(
                    "User account index: {}, address: {}, sequence number: {}, status: {:?}",
                    index,
                    hex::encode(&account.address),
                    account.sequence_number,
                    account.status,
                );
            }
        }
        if let Some(faucet_account) = &self.faucet_account {
            println!(
                "Faucet account address: {}, sequence_number: {}, status: {:?}",
                hex::encode(&faucet_account.address),
                faucet_account.sequence_number,
                faucet_account.status,
            );
        }
    }
pub fn print_all_accounts ( & self ) { if self . accounts . is_empty ( ) { println ! ( " " ) ; } else { for ( ref index , ref account ) in self . accounts . iter ( ) . enumerate ( ) { println ! ( " " index hex encode ( account address ) account sequence_number account status ) ; } } if let Some ( faucet_account ) = & self . faucet_account { println ! ( " " hex encode ( faucet_account address ) faucet_account sequence_number faucet_account status ) ; } }
Print index and address of all accounts.
Print index and address of all accounts .
&self
&self