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

@ -52,7 +52,7 @@ const CRYPTO_CURRENCIES = [
},
{
cryptoCode: 'BCH',
display: 'BCH',
display: 'Bitcoin Cash',
code: 'bitcoincash',
configFile: 'bitcoincash.conf',
daemon: 'bitcoincashd',
@ -80,7 +80,7 @@ function buildUrl (cryptoCode, address) {
case 'ZEC': return `zcash:${address}`
case 'LTC': return `litecoin:${address}`
case 'DASH': return `dash:${address}`
case 'BCH': return `bitcoincash:${address}`
case 'BCH': return `${address}`
default: throw new Error(`Unsupported crypto: ${cryptoCode}`)
}
}