diff --git a/lib/background/payment_hash_poller.dart b/lib/background/payment_hash_poller.dart index c601ab116..7d485ef35 100644 --- a/lib/background/payment_hash_poller.dart +++ b/lib/background/payment_hash_poller.dart @@ -35,8 +35,10 @@ class PaymentHashPoller { final breezLib = injector.breezSDK; try { final List paymentList = await breezLib.listPayments( - filter: PaymentTypeFilter.Received, - fromTimestamp: DateTime.now().subtract(const Duration(minutes: 30)).millisecondsSinceEpoch, + request: ListPaymentsRequest( + filter: PaymentTypeFilter.Received, + fromTimestamp: DateTime.now().subtract(const Duration(minutes: 30)).millisecondsSinceEpoch, + ), ); for (var payment in paymentList) { final detailsData = payment.details.data; diff --git a/lib/bloc/withdraw/withdraw_funds_bloc.dart b/lib/bloc/withdraw/withdraw_funds_bloc.dart index 66bf1e2ff..529eec536 100644 --- a/lib/bloc/withdraw/withdraw_funds_bloc.dart +++ b/lib/bloc/withdraw/withdraw_funds_bloc.dart @@ -23,8 +23,10 @@ class WithdrawFundsBloc extends Cubit { }) async { _log.v("Sweep to address $toAddress using $feeRateSatsPerVbyte fee vByte"); await _breezLib.sweep( - toAddress: toAddress, - feeRateSatsPerVbyte: feeRateSatsPerVbyte, + request: SweepRequest( + toAddress: toAddress, + feeRateSatsPerVbyte: feeRateSatsPerVbyte, + ), ); }