Merge pull request #731 from cypherstack/bch-p2sh

BCH: Do not validate "p" (P2SH) addresses.
This commit is contained in:
Diego Salazar 2024-01-23 16:49:27 -07:00 committed by GitHub
commit ad943ad8d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,7 +192,8 @@ class Bitcoincash extends Bip39HDCurrency {
addr = cashAddr.split(":").last;
}
return addr.startsWith("q") || addr.startsWith("p");
return addr.startsWith("q") /*|| addr.startsWith("p")*/;
// Do not validate "p" (P2SH) addresses.
}
@override