pass getUnusedReservedChangeAddresses to Fusion class

This commit is contained in:
sneurlax 2023-08-08 09:32:11 -05:00
parent 80ddbe2b20
commit bae46bb27d

View file

@ -104,7 +104,10 @@ mixin FusionInterface {
void fuse() async {
// Initial attempt for CashFusion integration goes here.
Fusion mainFusionObject = Fusion(
createNewReservedChangeAddress: () => createNewReservedChangeAddress());
createNewReservedChangeAddress: () => createNewReservedChangeAddress(),
getUnusedReservedChangeAddresses: (int numberOfAddresses) =>
getUnusedReservedChangeAddresses(numberOfAddresses),
);
// add stack utxos
List<UTXO> utxos = await _db.getUTXOs(_walletId).findAll();