litecoind 0.17 getbalance compatibility change

This commit is contained in:
Neal Conner 2019-08-06 14:54:48 -04:00 committed by Josh Harvey
parent def5a16ad4
commit e795537f2b

View file

@ -28,7 +28,7 @@ function checkCryptoCode (cryptoCode) {
function accountBalance (acount, cryptoCode, confirmations) {
return checkCryptoCode(cryptoCode)
.then(() => fetch('getbalance', ['', confirmations]))
.then(() => fetch('getbalance', ['*', confirmations]))
.then(r => BN(r).shift(unitScale).round())
}