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

fix(etherscan)!: change the GasOracle fields to be f64 #2325

Merged
merged 3 commits into from
Apr 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ethers-etherscan/src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ use std::{collections::HashMap, str::FromStr};
#[serde(rename_all = "PascalCase")]
pub struct GasOracle {
#[serde(deserialize_with = "deserialize_number_from_string")]
pub safe_gas_price: u64,
pub safe_gas_price: f64,
#[serde(deserialize_with = "deserialize_number_from_string")]
pub propose_gas_price: u64,
pub propose_gas_price: f64,
#[serde(deserialize_with = "deserialize_number_from_string")]
pub fast_gas_price: u64,
pub fast_gas_price: f64,
#[serde(deserialize_with = "deserialize_number_from_string")]
pub last_block: u64,
#[serde(deserialize_with = "deserialize_number_from_string")]
Expand Down