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

fix: wrong unit for gas_price (ether -> gwei) #1316

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion ethers-middleware/src/gas_oracle/polygon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,5 @@ impl GasOracle for Polygon {
}

fn from_gwei(gwei: f64) -> U256 {
u256_from_f64_saturating(gwei * 1.0e18_f64)
u256_from_f64_saturating(gwei * 1.0e9_f64)
}