pub fn assert_eventual_wallet_amount(
        &self,
        user: &Wallet,
        target_amount: u64,
        denom: &Denom,
    ) -> Result<(), Error> {
        assert_eventually_succeed(
            "wallet reach expected amount",
            || {
                let amount = self.query_balance(&user.address, denom)?;

                if amount == target_amount {
                    Ok(())
                } else {
                    Err(eyre!(
                        "current balance amount {} does not match the target amount {}",
                        amount,
                        target_amount
                    ))
                }
            },
            20,
            Duration::from_secs(1),
        )?;

        Ok(())
    }
/**
       Assert that a wallet should eventually have the expected amount in the
       given denomination.
    */
Assert that a wallet should eventually have the expected amount in the
given denomination.
Assert that a wallet should eventually have the expected amount in the given denomination .
pub fn assert_eventual_wallet_amount(
        &self,
        user: &Wallet,
        target_amount: u64,
        denom: &Denom,
    ) -> Result<(), Error> {
        assert_eventually_succeed(
            "wallet reach expected amount",
            || {
                let amount = self.query_balance(&user.address, denom)?;
                if amount == target_amount {
                    Ok(())
                } else {
                    Err(eyre!(
                        "current balance amount {} does not match the target amount {}",
                        amount,
                        target_amount
                    ))
                }
            },
            20,
            Duration::from_secs(1),
        )?;
        Ok(())
    }
pub fn assert_eventual_wallet_amount ( & self , user : & Wallet , target_amount : u64 , denom : & Denom , ) -> Result < ( ) , Error > { assert_eventually_succeed ( " " , | | { let amount = self . query_balance ( & user . address , denom ) ? ; if amount == target_amount { Ok ( ( ) ) } else { Err ( eyre ! ( " " amount target_amount ) ) } } , 20 , Duration :: from_secs ( 1 ) , ) ? ; Ok ( ( ) ) }
Assert that a wallet should eventually have the expected amount in the
given denomination.
Assert that a wallet should eventually have the expected amount in the given denomination .
&self
user
&Wallet
target_amount
u64
denom
&Denom
&self
user
&Wallet
target_amount
u64
denom
&Denom