Skip to content

Commit c7f078c

Browse files
committed
Fix dart issues
1 parent 20d4516 commit c7f078c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/dart_snippets/lib/communicating_fees.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'package:breez_sdk/bridge_generated.dart';
33

44
Future<void> getFeeInfoAfterInvoiceCreated({required ReceivePaymentResponse receivePaymentResponse}) async {
55
// ANCHOR: get-fee-info-after-invoice-created
6-
int openingFeeSat = (receivePaymentResponse.openingFeeMsat ?? 0) / 1000;
6+
int openingFeeSat = (receivePaymentResponse.openingFeeMsat ?? 0) / 1000 as int;
77
print("A setup fee of ${openingFeeSat} sats is applied to this invoice.");
88
// ANCHOR_END: get-fee-info-after-invoice-created
99
}

0 commit comments

Comments
 (0)