pub fn wait_for_transaction(&mut self, account: AccountAddress, sequence_number: u64) {
        let mut max_iterations = 5000;
        print!("waiting ");
        loop {
            stdout().flush().unwrap();
            max_iterations -= 1;

            if let Ok(Some((_, Some(events)))) =
                self.client
                    .get_txn_by_acc_seq(account, sequence_number - 1, true)
            {
                println!("transaction is stored!");
                if events.is_empty() {
                    println!("no events emitted");
                }
                break;
            } else if max_iterations == 0 {
                panic!("wait_for_transaction timeout");
            } else {
                print!(".");
            }
            thread::sleep(time::Duration::from_millis(10));
        }
    }
/// Waits for the next transaction for a specific address and prints it
Waits for the next transaction for a specific address and prints it
Waits for the next transaction for a specific address and prints it
pub fn wait_for_transaction(&mut self, account: AccountAddress, sequence_number: u64) {
        let mut max_iterations = 5000;
        print!("waiting ");
        loop {
            stdout().flush().unwrap();
            max_iterations -= 1;
            if let Ok(Some((_, Some(events)))) =
                self.client
                    .get_txn_by_acc_seq(account, sequence_number - 1, true)
            {
                println!("transaction is stored!");
                if events.is_empty() {
                    println!("no events emitted");
                }
                break;
            } else if max_iterations == 0 {
                panic!("wait_for_transaction timeout");
            } else {
                print!(".");
            }
            thread::sleep(time::Duration::from_millis(10));
        }
    }
pub fn wait_for_transaction ( & mut self , account : AccountAddress , sequence_number : u64 ) { let mut max_iterations = 5000 ; print ! ( " " ) ; loop { stdout ( ) . flush ( ) . unwrap ( ) ; max_iterations -= 1 ; if let Ok ( Some ( ( _ , Some ( events ) ) ) ) = self . client . get_txn_by_acc_seq ( account , sequence_number - 1 , true ) { println ! ( " " ) ; if events . is_empty ( ) { println ! ( " " ) ; } break ; } else if max_iterations == 0 { panic ! ( " " ) ; } else { print ! ( " " ) ; } thread :: sleep ( time :: Duration :: from_millis ( 10 ) ) ; } }
Waits for the next transaction for a specific address and prints it
Waits for the next transaction for a specific address and prints it
&mut self
account
AccountAddress
sequence_number
u64