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(
fusion.UtxoDTO(
txid: utxo.txid, txid: utxo.txid,
vout: utxo.vout, vout: utxo.vout,
value: utxo.value, value: utxo.value,
pubKey: pubKey pubKey: pubKey,
)); ),
);
} }
// Add Stack UTXOs. // Add Stack UTXOs.