ci: cargo fmt
This commit is contained in:
parent
4fd656bce1
commit
771c55175f
|
@ -8,7 +8,10 @@ use std::convert::TryFrom;
|
||||||
#[cfg(not(feature = "celo"))]
|
#[cfg(not(feature = "celo"))]
|
||||||
mod eth_tests {
|
mod eth_tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use ethers::{types::BlockNumber, utils::{parse_ether, Ganache}};
|
use ethers::{
|
||||||
|
types::BlockNumber,
|
||||||
|
utils::{parse_ether, Ganache},
|
||||||
|
};
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn pending_txs_with_confirmations_rinkeby_infura() {
|
async fn pending_txs_with_confirmations_rinkeby_infura() {
|
||||||
|
@ -25,7 +28,10 @@ mod eth_tests {
|
||||||
.connect(provider);
|
.connect(provider);
|
||||||
|
|
||||||
let tx = TransactionRequest::pay(client.address(), parse_ether(1u64).unwrap());
|
let tx = TransactionRequest::pay(client.address(), parse_ether(1u64).unwrap());
|
||||||
let pending_tx = client.send_transaction(tx, Some(BlockNumber::Pending)).await.unwrap();
|
let pending_tx = client
|
||||||
|
.send_transaction(tx, Some(BlockNumber::Pending))
|
||||||
|
.await
|
||||||
|
.unwrap();
|
||||||
let hash = *pending_tx;
|
let hash = *pending_tx;
|
||||||
let receipt = pending_tx.confirmations(3).await.unwrap();
|
let receipt = pending_tx.confirmations(3).await.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue