(timeout: Duration, message: &str)
| 78 | const RESET_COLOR: &str = "\x1b[0m"; |
| 79 | |
| 80 | async fn wait_with_message(timeout: Duration, message: &str) { |
| 81 | println!( |
| 82 | "Waiting {DURATION_COLOR}{:?}{RESET_COLOR}{}...", |
| 83 | timeout, message |
| 84 | ); |
| 85 | sleep(timeout).await; |
| 86 | } |
| 87 | |
| 88 | pub async fn wait_for_confirmation_with_message(network: Network, message: Option<&str>) { |
| 89 | let timeout = Duration::from_secs(tx_wait_time(network)); |
no outgoing calls
no test coverage detected