Merge pull request #1090 from siiky/fix/lam-325/bignums-compat
fix: convert bn.js to bignumber.js bignum
This commit is contained in:
commit
29b622e1d3
1 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,8 @@ function _balance (includePending, address, cryptoCode) {
|
|||
}
|
||||
const block = includePending ? 'pending' : undefined
|
||||
return pify(web3.eth.getBalance)(address.toLowerCase(), block)
|
||||
/* NOTE: Convert bn.js bignum to bignumber.js bignum */
|
||||
.then(balance => balance ? BN(balance.toString(16), 16) : BN(0))
|
||||
}
|
||||
|
||||
function generateTx (_toAddress, wallet, amount, includesFee, cryptoCode) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue