Skip to content

Commit

Permalink
add request param for ListPaymentsRequest SweepRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
ubbabeck committed Oct 4, 2023
1 parent d736ef6 commit 5409f6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/background/payment_hash_poller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ class PaymentHashPoller {
final breezLib = injector.breezSDK;
try {
final List<Payment> 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;
Expand Down
6 changes: 4 additions & 2 deletions lib/bloc/withdraw/withdraw_funds_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ class WithdrawFundsBloc extends Cubit<WithdrawFundsState> {
}) async {
_log.v("Sweep to address $toAddress using $feeRateSatsPerVbyte fee vByte");
await _breezLib.sweep(
toAddress: toAddress,
feeRateSatsPerVbyte: feeRateSatsPerVbyte,
request: SweepRequest(
toAddress: toAddress,
feeRateSatsPerVbyte: feeRateSatsPerVbyte,
),
);
}

Expand Down

0 comments on commit 5409f6f

Please sign in to comment.