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

This commit is contained in:
naiba 2022-06-02 23:58:03 +08:00 committed by GitHub
parent 598c00e55d
commit 214d24dfd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,5 +87,5 @@ impl GasOracle for Polygon {
} }
fn from_gwei(gwei: f64) -> U256 { fn from_gwei(gwei: f64) -> U256 {
u256_from_f64_saturating(gwei * 1.0e18_f64) u256_from_f64_saturating(gwei * 1.0e9_f64)
} }