pub fn add_genesis_validator(
        &self,
        wallet_id: &WalletId,
        denom: &Denom,
        amount: u64,
    ) -> Result<(), Error> {
        let amount_str = format!("{}{}", amount, denom.0);

        self.exec(&[
            "--home",
            &self.home_path,
            "gentx",
            &wallet_id.0,
            "--keyring-backend",
            "test",
            "--chain-id",
            self.chain_id.as_str(),
            &amount_str,
        ])?;

        Ok(())
    }
/**
       Add a wallet ID with the given stake amount to be the genesis validator
       for an uninitialized chain.
    */
Add a wallet ID with the given stake amount to be the genesis validator
for an uninitialized chain.
Add a wallet ID with the given stake amount to be the genesis validator for an uninitialized chain .
pub fn add_genesis_validator(
        &self,
        wallet_id: &WalletId,
        denom: &Denom,
        amount: u64,
    ) -> Result<(), Error> {
        let amount_str = format!("{}{}", amount, denom.0);
        self.exec(&[
            "--home",
            &self.home_path,
            "gentx",
            &wallet_id.0,
            "--keyring-backend",
            "test",
            "--chain-id",
            self.chain_id.as_str(),
            &amount_str,
        ])?;
        Ok(())
    }
pub fn add_genesis_validator ( & self , wallet_id : & WalletId , denom : & Denom , amount : u64 , ) -> Result < ( ) , Error > { let amount_str = format ! ( " " amount denom 0 ) ; self . exec ( & [ " " , & self . home_path , " " , & wallet_id . 0 , " " , " " , " " , self . chain_id . as_str ( ) , & amount_str , ] ) ? ; Ok ( ( ) ) }
Add a wallet ID with the given stake amount to be the genesis validator
for an uninitialized chain.
Add a wallet ID with the given stake amount to be the genesis validator for an uninitialized chain .
&self
wallet_id
&WalletId
denom
&Denom
amount
u64
&self
wallet_id
&WalletId
denom
&Denom
amount
u64