Fix - 294
- Scan QR code bitcoincash adress (addressbook) without bitcoincash: is not working
This commit is contained in:
parent
961f58a11b
commit
5a6139e6dc
1 changed files with 4 additions and 1 deletions
|
|
@ -15,7 +15,10 @@ angular.module('copayApp.directives')
|
|||
|
||||
var validator = function(value) {
|
||||
|
||||
if (value.indexOf('bitcoincash:') >= 0 || value[0] == 'C' || value[0] == 'H') {
|
||||
if (value.indexOf('bitcoincash:') >= 0 || value[0] == 'C' || value[0] == 'H' || value[0] == 'p' || value[0] == 'q') {
|
||||
if (value.indexOf('bitcoincash:') < 0) {
|
||||
value = 'bitcoincash:' + value;
|
||||
}
|
||||
value = bitcoinCashJsService.readAddress(value).legacy;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue