mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-26 00:58:50 +00:00
use bch net params
This commit is contained in:
parent
9c352d0e99
commit
ebabfc9328
2 changed files with 9 additions and 5 deletions
|
@ -1 +1 @@
|
|||
Subproject commit d17baa1c2ec60f544783c705496435f055830620
|
||||
Subproject commit 8de8eaaefef432026602074b5bdd43c6b8c98582
|
|
@ -289,7 +289,11 @@ mixin FusionWalletInterface {
|
|||
final inputs = await mainFusionObject.addCoinsFromWallet(coinList);
|
||||
|
||||
// Fuse UTXOs.
|
||||
return await mainFusionObject.fuse(inputsFromWallet: inputs);
|
||||
return await mainFusionObject.fuse(
|
||||
inputsFromWallet: inputs,
|
||||
network:
|
||||
_coin.isTestNet ? fusion.Utilities.testNet : fusion.Utilities.mainNet,
|
||||
);
|
||||
//print ("DEBUG FUSION bitcoincash_wallet.dart 1202");
|
||||
|
||||
// TODO remove or fix code below.
|
||||
|
@ -407,7 +411,7 @@ extension FusionAddress on Address {
|
|||
}
|
||||
|
||||
return fusion.Address(
|
||||
addr: value,
|
||||
address: value,
|
||||
publicKey: publicKey,
|
||||
derivationPath: fusion.DerivationPath(
|
||||
derivationPath?.value ?? "", // TODO fix null derivation path.
|
||||
|
@ -493,7 +497,7 @@ extension FusionUTXO on UTXO {
|
|||
|
||||
return fusion.Output(
|
||||
addr: fusion.Address(
|
||||
addr: address!,
|
||||
address: address!,
|
||||
publicKey: addr.publicKey,
|
||||
derivationPath: fusion.DerivationPath(
|
||||
addr.derivationPath!.value,
|
||||
|
@ -601,7 +605,7 @@ extension FusionTransaction on Transaction {
|
|||
|
||||
return fusion.Output(
|
||||
addr: fusion.Address(
|
||||
addr: output.scriptPubKeyAddress,
|
||||
address: output.scriptPubKeyAddress,
|
||||
publicKey: outputAddressScriptPubKey,
|
||||
derivationPath: derivationPath,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue