From 6538ddd394626cb06e44b2299c3dd7440593f795 Mon Sep 17 00:00:00 2001 From: Odysseas Lamtzidis Date: Sun, 19 Sep 2021 20:15:45 +0300 Subject: [PATCH] Change wei from 1 to 0 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 1102d338e..781a1187d 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, } }