aboutsummaryrefslogblamecommitdiffstats
path: root/app/scripts/lib/hex-to-bn.js
blob: 184217279962490247292762c7d248ebf5e2210e (plain) (tree)
1
2
3
4
5
6
7






                                                
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN

module.exports = function hexToBn (hex) {
  return new BN(ethUtil.stripHexPrefix(hex), 16)
}