From 80adc08860e6a01dec5574d3f51b8abb0a3001f1 Mon Sep 17 00:00:00 2001 From: Odysseas Lamtzidis Date: Mon, 20 Sep 2021 17:53:37 +0300 Subject: [PATCH] Change wei from 1 to 0 (#460) 1 WEI = 10^0 WEI, not 10^1 --- ethers-core/src/utils/units.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-core/src/utils/units.rs b/ethers-core/src/utils/units.rs index 1102d338..781a1187 100644 --- a/ethers-core/src/utils/units.rs +++ b/ethers-core/src/utils/units.rs @@ -15,7 +15,7 @@ impl Units { match self { Units::Ether => 18, Units::Gwei => 9, - Units::Wei => 1, + Units::Wei => 0, Units::Other(inner) => *inner, } }