Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
test: adjust the test
Browse files Browse the repository at this point in the history
  • Loading branch information
gakonst committed Aug 20, 2020
1 parent 65bfc26 commit 931b546
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ethers-signers/tests/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,14 @@ mod eth_tests {
// connect the wallet to the provider
let client = wallet.connect(provider);

let mut futs = Vec::new();
let mut tx_hashes = Vec::new();
for _ in 0..10 {
futs.push(
client.send_transaction(TransactionRequest::pay(wallet2.address(), 100u64), None),
);
let tx = client.send_transaction(TransactionRequest::pay(wallet2.address(), 100u64), None).await.unwrap();
tx_hashes.push(tx);
}
let result = futures_util::future::join_all(futs).await;

let mut nonces = Vec::new();
for res in result {
let tx_hash = res.unwrap();
for tx_hash in tx_hashes {
nonces.push(client.get_transaction(tx_hash).await.unwrap().nonce.as_u64());
}

Expand Down

0 comments on commit 931b546

Please sign in to comment.