Skip to content

Commit ad943ad

Browse files
authored
Merge pull request #731 from cypherstack/bch-p2sh
BCH: Do not validate "p" (P2SH) addresses.
2 parents aa88b9a + 8e7523f commit ad943ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/wallets/crypto_currency/coins/bitcoincash.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ class Bitcoincash extends Bip39HDCurrency {
192192
addr = cashAddr.split(":").last;
193193
}
194194

195-
return addr.startsWith("q") || addr.startsWith("p");
195+
return addr.startsWith("q") /*|| addr.startsWith("p")*/;
196+
// Do not validate "p" (P2SH) addresses.
196197
}
197198

198199
@override

0 commit comments

Comments
 (0)