mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
add addr type to bch addr type check
This commit is contained in:
parent
583353020b
commit
5e4a500306
1 changed files with 4 additions and 0 deletions
|
@ -204,6 +204,10 @@ class Bitcoincash extends Bip39HDCurrency {
|
||||||
// P2PKH
|
// P2PKH
|
||||||
return DerivePathType.bip44;
|
return DerivePathType.bip44;
|
||||||
}
|
}
|
||||||
|
if (decodeBase58[0] == networkParams.p2shPrefix) {
|
||||||
|
// P2SH
|
||||||
|
return DerivePathType.bip49;
|
||||||
|
}
|
||||||
|
|
||||||
throw ArgumentError('Invalid version or Network mismatch');
|
throw ArgumentError('Invalid version or Network mismatch');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue