add addr type to bch addr type check

This commit is contained in:
julian 2023-11-14 08:52:58 -06:00
parent 583353020b
commit 5e4a500306

View file

@ -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 {