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

Commit

Permalink
fix: update type in etherscan tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Apr 9, 2023
1 parent b0ccfae commit 77d118c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ethers-etherscan/tests/it/gas.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::*;
use ethers_core::types::Chain;
use ethers_core::types::{Chain, U256};
use serial_test::serial;

#[tokio::test]
Expand Down Expand Up @@ -34,11 +34,11 @@ async fn gas_oracle_success() {

let oracle = result.unwrap();

assert!(oracle.safe_gas_price > 0f64);
assert!(oracle.propose_gas_price > 0f64);
assert!(oracle.fast_gas_price > 0f64);
assert!(oracle.safe_gas_price > U256::zero());
assert!(oracle.propose_gas_price > U256::zero());
assert!(oracle.fast_gas_price > U256::zero());
assert!(oracle.last_block > 0);
assert!(oracle.suggested_base_fee > 0.0);
assert!(oracle.suggested_base_fee > U256::zero());
assert!(!oracle.gas_used_ratio.is_empty());
})
.await
Expand Down

0 comments on commit 77d118c

Please sign in to comment.