mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
bch cashaddr fix
This commit is contained in:
parent
90870c7563
commit
b348761bbe
1 changed files with 2 additions and 0 deletions
|
@ -373,6 +373,7 @@ class BitcoinCashWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
case DerivePathType.bip44:
|
case DerivePathType.bip44:
|
||||||
addressString = P2PKH(data: data, network: _network).data.address!;
|
addressString = P2PKH(data: data, network: _network).data.address!;
|
||||||
addrType = isar_models.AddressType.p2pkh;
|
addrType = isar_models.AddressType.p2pkh;
|
||||||
|
addressString = bitbox.Address.toCashAddress(addressString);
|
||||||
break;
|
break;
|
||||||
case DerivePathType.bip49:
|
case DerivePathType.bip49:
|
||||||
addressString = P2SH(
|
addressString = P2SH(
|
||||||
|
@ -1401,6 +1402,7 @@ class BitcoinCashWallet extends CoinServiceAPI with WalletCache, WalletDB {
|
||||||
case DerivePathType.bip44:
|
case DerivePathType.bip44:
|
||||||
address = P2PKH(data: data, network: _network).data.address!;
|
address = P2PKH(data: data, network: _network).data.address!;
|
||||||
addrType = isar_models.AddressType.p2pkh;
|
addrType = isar_models.AddressType.p2pkh;
|
||||||
|
address = bitbox.Address.toCashAddress(address);
|
||||||
break;
|
break;
|
||||||
case DerivePathType.bip49:
|
case DerivePathType.bip49:
|
||||||
address = P2SH(
|
address = P2SH(
|
||||||
|
|
Loading…
Reference in a new issue