Skip to content

Commit

Permalink
do not validate "p" (P2SH) addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
sneurlax committed Jan 23, 2024
1 parent aa88b9a commit 8e7523f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wallets/crypto_currency/coins/bitcoincash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e7523f

Please sign in to comment.