From 4d94de2e3d85e7012a7692fac91964434f751ebc Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 26 Feb 2024 10:23:34 -0600 Subject: [PATCH] do not validate "p" (P2SH) addresses --- lib/wallets/crypto_currency/coins/ecash.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wallets/crypto_currency/coins/ecash.dart b/lib/wallets/crypto_currency/coins/ecash.dart index 6858796cb..07e164c6e 100644 --- a/lib/wallets/crypto_currency/coins/ecash.dart +++ b/lib/wallets/crypto_currency/coins/ecash.dart @@ -185,7 +185,8 @@ class Ecash 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