Support CashAddr format (#109)
* Don't convert BCH address * Update for CashAddr * Rename to Bitcoin Cash * fix typo
This commit is contained in:
parent
982c60c7f5
commit
edd54c16f5
4 changed files with 6 additions and 27 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue