From 8e7523f8040cd57e17286722a73a1ad3bef73669 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Tue, 23 Jan 2024 17:46:21 -0600 Subject: [PATCH] do not validate "p" (P2SH) addresses --- lib/wallets/crypto_currency/coins/bitcoincash.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallets/crypto_currency/coins/bitcoincash.dart b/lib/wallets/crypto_currency/coins/bitcoincash.dart index 9acc45177..eaf40d4d0 100644 --- a/lib/wallets/crypto_currency/coins/bitcoincash.dart +++ b/lib/wallets/crypto_currency/coins/bitcoincash.dart @@ -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