pub fn add_genesis_account(
        &self,
        wallet: &WalletAddress,
        amounts: &[(&Denom, u64)],
    ) -> Result<(), Error> {
        let amounts_str = itertools::join(
            amounts
                .iter()
                .map(|(denom, amount)| format!("{}{}", amount, denom.0)),
            ",",
        );

        self.exec(&[
            "--home",
            &self.home_path,
            "add-genesis-account",
            &wallet.0,
            &amounts_str,
        ])?;

        Ok(())
    }
/**
       Add a wallet address to the genesis account list for an uninitialized
       full node.
    */
Add a wallet address to the genesis account list for an uninitialized
full node.
Add a wallet address to the genesis account list for an uninitialized full node .
pub fn add_genesis_account(
        &self,
        wallet: &WalletAddress,
        amounts: &[(&Denom, u64)],
    ) -> Result<(), Error> {
        let amounts_str = itertools::join(
            amounts
                .iter()
                .map(|(denom, amount)| format!("{}{}", amount, denom.0)),
            ",",
        );
        self.exec(&[
            "--home",
            &self.home_path,
            "add-genesis-account",
            &wallet.0,
            &amounts_str,
        ])?;
        Ok(())
    }
pub fn add_genesis_account ( & self , wallet : & WalletAddress , amounts : & [ ( & Denom , u64 ) ] , ) -> Result < ( ) , Error > { let amounts_str = itertools :: join ( amounts . iter ( ) . map ( | ( denom , amount ) | format ! ( " " amount denom 0 ) ) , " " , ) ; self . exec ( & [ " " , & self . home_path , " " , & wallet . 0 , & amounts_str , ] ) ? ; Ok ( ( ) ) }
Add a wallet address to the genesis account list for an uninitialized
full node.
Add a wallet address to the genesis account list for an uninitialized full node .
&self
wallet
&WalletAddress
amounts
&[(&Denom, u64)]
&self
wallet
&WalletAddress
amounts
&[(&Denom, u64)]