Skip to content

Commit

Permalink
dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
ubbabeck committed Oct 10, 2023
1 parent 61e5277 commit 41ac49e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/bloc/account/account_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ class AccountBloc extends Cubit<AccountState> with HydratedMixin {
}) async {
_log.fine("addInvoice: $description, $amountSats");

final requestData = sdk.ReceivePaymentRequest(amountSats: amountSats, description: description, openingFeeParams: chosenFeeParams);
final requestData = sdk.ReceivePaymentRequest(
amountSats: amountSats, description: description, openingFeeParams: chosenFeeParams);
final responseData = await _breezLib.receivePayment(reqData: requestData);
return responseData;
}
Expand Down
7 changes: 3 additions & 4 deletions lib/routes/create_invoice/create_invoice_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,9 @@ class CreateInvoicePageState extends State<CreateInvoicePage> {
final currencyBloc = context.read<CurrencyBloc>();

Future<ReceivePaymentResponse> receivePaymentResponse = accountBloc.addInvoice(
description: _descriptionController.text,
amountSats: currencyBloc.state.bitcoinCurrency.parse(_amountController.text),
chosenFeeParams: cheapestFeeParams
);
description: _descriptionController.text,
amountSats: currencyBloc.state.bitcoinCurrency.parse(_amountController.text),
chosenFeeParams: cheapestFeeParams);
navigator.pop();
Widget dialog = FutureBuilder(
future: receivePaymentResponse,
Expand Down

0 comments on commit 41ac49e

Please sign in to comment.