mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 02:07:43 +00:00
update fusiondart ref
This commit is contained in:
parent
1df986e444
commit
331f5c7614
2 changed files with 10 additions and 14 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit 6cd09fe76af5e20c3bf36dcd11bf26d20140e510
|
Subproject commit e4009d5f588e09ef91b77bae187279421d876e12
|
|
@ -221,13 +221,7 @@ mixin FusionWalletInterface {
|
||||||
|
|
||||||
// Add stack UTXOs.
|
// Add stack UTXOs.
|
||||||
final List<UTXO> walletUtxos = await _db.getUTXOs(_walletId).findAll();
|
final List<UTXO> walletUtxos = await _db.getUTXOs(_walletId).findAll();
|
||||||
final List<
|
final List<fusion.UtxoDTO> coinList = [];
|
||||||
({
|
|
||||||
String txid,
|
|
||||||
int vout,
|
|
||||||
int value,
|
|
||||||
List<int> pubKey,
|
|
||||||
})> coinList = [];
|
|
||||||
|
|
||||||
// Loop through UTXOs, checking and adding valid ones.
|
// Loop through UTXOs, checking and adding valid ones.
|
||||||
for (final utxo in walletUtxos) {
|
for (final utxo in walletUtxos) {
|
||||||
|
@ -258,12 +252,14 @@ mixin FusionWalletInterface {
|
||||||
List<int> pubKey = scriptPubKeyHex.toUint8ListFromHex;
|
List<int> pubKey = scriptPubKeyHex.toUint8ListFromHex;
|
||||||
|
|
||||||
// Add UTXO to coinList.
|
// Add UTXO to coinList.
|
||||||
coinList.add((
|
coinList.add(
|
||||||
txid: utxo.txid,
|
fusion.UtxoDTO(
|
||||||
vout: utxo.vout,
|
txid: utxo.txid,
|
||||||
value: utxo.value,
|
vout: utxo.vout,
|
||||||
pubKey: pubKey
|
value: utxo.value,
|
||||||
));
|
pubKey: pubKey,
|
||||||
|
),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add Stack UTXOs.
|
// Add Stack UTXOs.
|
||||||
|
|
Loading…
Reference in a new issue