chore: update big number package

This commit is contained in:
José Oliveira 2021-06-15 22:34:36 +01:00 committed by Josh Harvey
parent 8aa18dd21c
commit ea44478b48
30 changed files with 186 additions and 144 deletions

View file

@ -15,7 +15,7 @@ function computeCrypto (cryptoCode, value) {
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
const unitScale = cryptoRec.unitScale
return BN(value).shift(unitScale)
return new BN(value).shiftedBy(unitScale)
} catch (err) {
return null
}