Support CashAddr format (#109)

* Don't convert BCH address

* Update for CashAddr

* Rename to Bitcoin Cash

* fix typo
This commit is contained in:
Neal Conner 2018-03-22 17:12:53 +00:00 committed by Josh Harvey
parent 982c60c7f5
commit edd54c16f5
4 changed files with 6 additions and 27 deletions

View file

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