update fusiondart ref and integration

This commit is contained in:
sneurlax 2023-09-27 15:04:24 -05:00
parent d760599183
commit 372f95af07
2 changed files with 3 additions and 12 deletions

@ -1 +1 @@
Subproject commit 7e7c4f27ba8aececf813a6117eaba549edcb5f89
Subproject commit 22084e8a4b39c282570645896a12332724f1cdbe

View file

@ -207,19 +207,10 @@ mixin FusionWalletInterface {
/// A `Future<void>` that resolves when the fusion operation is finished.
Future<void> fuse() async {
// Initial attempt for CashFusion integration goes here.
final mainFusionObject = Fusion(
getAddresses: () => getFusionAddresses(),
getTransactionsByAddress: (String address) =>
getTransactionsByAddress(address),
getInputsByAddress: (String address) => getInputsByAddress(address),
// createNewReservedChangeAddress: () => createNewReservedChangeAddress(),
getUnusedReservedChangeAddresses: (int numberOfAddresses) =>
getUnusedReservedChangeAddresses(numberOfAddresses),
getSocksProxyAddress: () => getSocksProxyAddress(),
);
final mainFusionObject = Fusion(FusionParams());
// Pass wallet functions to the Fusion object
mainFusionObject.initFusion(
await mainFusionObject.initFusion(
getAddresses: getFusionAddresses,
getTransactionsByAddress: getTransactionsByAddress,
getInputsByAddress: getInputsByAddress,