From 5e4a500306ce455adbbdd2f1eec89f24b4856b34 Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 14 Nov 2023 08:52:58 -0600 Subject: [PATCH] add addr type to bch addr type check --- lib/wallets/crypto_currency/coins/bitcoincash.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/wallets/crypto_currency/coins/bitcoincash.dart b/lib/wallets/crypto_currency/coins/bitcoincash.dart index 7c379ecd1..3deb24252 100644 --- a/lib/wallets/crypto_currency/coins/bitcoincash.dart +++ b/lib/wallets/crypto_currency/coins/bitcoincash.dart @@ -204,6 +204,10 @@ class Bitcoincash extends Bip39HDCurrency { // P2PKH return DerivePathType.bip44; } + if (decodeBase58[0] == networkParams.p2shPrefix) { + // P2SH + return DerivePathType.bip49; + } throw ArgumentError('Invalid version or Network mismatch'); } else {