aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/util.js')
-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 82a5f9f29..70c503550 100644
--- a/ui/app/util.js
+++ b/ui/app/util.js
@@ -211,6 +211,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)
}