Add backend fix for util in normalizeethstringtowei.

feature/default_network_editable
Kevin Serrano 7 years ago
parent 414f89668e
commit 3e562f1a1e
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1
  1. 3
      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)
}

Loading…
Cancel
Save