update fusiondart ref

This commit is contained in:
julian 2023-09-28 11:44:17 -06:00
parent 1df986e444
commit 331f5c7614
2 changed files with 10 additions and 14 deletions

@ -1 +1 @@
Subproject commit 6cd09fe76af5e20c3bf36dcd11bf26d20140e510 Subproject commit e4009d5f588e09ef91b77bae187279421d876e12

View file

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