aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-12-28 09:31:38 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-12-28 09:31:38 +0800
commit3e562f1a1e594955f203b75a0be595e4bd6bca76 (patch)
treed0149f8856f45ba5e5e0f9081259d01704cd4015 /ui
parent414f89668eb554e82ab22d3b3080322057388266 (diff)
downloadtangerine-wallet-browser-3e562f1a1e594955f203b75a0be595e4bd6bca76.tar.gz
tangerine-wallet-browser-3e562f1a1e594955f203b75a0be595e4bd6bca76.tar.zst
tangerine-wallet-browser-3e562f1a1e594955f203b75a0be595e4bd6bca76.zip
Add backend fix for util in normalizeethstringtowei.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/util.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/util.js b/ui/app/util.js
index 3f8b4dcc3..293f4228c 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -193,6 +193,9 @@ function normalizeEthStringToWei (str) {
while (decimal.length < 18) {
decimal += '0'
}
+ if (decimal.length > 18) {
+ decimal = decimal.slice(0, 18)
+ }
const decimalBN = new ethUtil.BN(decimal, 10)
eth = eth.add(decimalBN)
}