ui/app/util.js
// Takes wei Hex, returns wei BN, even if input is null
Takes wei Hex, returns wei BN, even if input is null
Takes wei Hex returns wei BN even if input is null
function numericBalance (balance) {
  if (!balance) return new ethUtil.BN(0, 16)
  var stripped = ethUtil.stripHexPrefix(balance)
  return new ethUtil.BN(stripped, 16)
}
function numericBalance ( balance ) { if ( ! balance ) return new ethUtil . BN ( 0 , 16 ) var stripped = ethUtil . stripHexPrefix ( balance ) return new ethUtil . BN ( stripped , 16 ) }
Takes wei Hex, returns wei BN, even if input is null
Takes wei Hex returns wei BN even if input is null