mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-12 09:32:33 +00:00
fix
This commit is contained in:
parent
c7dd20fa41
commit
3feac41c61
2 changed files with 3 additions and 7 deletions
|
@ -2,7 +2,6 @@ import 'package:cake_wallet/lightning/lightning.dart';
|
|||
import 'package:cake_wallet/src/screens/receive/widgets/lightning_input_form.dart';
|
||||
import 'package:cake_wallet/src/screens/receive/widgets/qr_image.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_two_actions_content_override.dart';
|
||||
import 'package:cake_wallet/themes/extensions/dashboard_page_theme.dart';
|
||||
import 'package:cake_wallet/themes/extensions/exchange_page_theme.dart';
|
||||
import 'package:cake_wallet/themes/extensions/keyboard_theme.dart';
|
||||
|
|
|
@ -1,15 +1,12 @@
|
|||
import 'dart:async';
|
||||
import 'package:breez_sdk/breez_sdk.dart';
|
||||
import 'package:breez_sdk/bridge_generated.dart' as BZG;
|
||||
import 'package:breez_sdk/bridge_generated.dart';
|
||||
import 'package:cake_wallet/entities/calculate_fiat_amount_raw.dart';
|
||||
import 'package:cake_wallet/entities/fiat_currency.dart';
|
||||
import 'package:cake_wallet/lightning/lightning.dart';
|
||||
import 'package:cake_wallet/routes.dart';
|
||||
import 'package:cake_wallet/src/widgets/alert_with_one_action.dart';
|
||||
import 'package:cake_wallet/store/dashboard/fiat_conversion_store.dart';
|
||||
import 'package:cake_wallet/store/settings_store.dart';
|
||||
import 'package:cake_wallet/utils/show_pop_up.dart';
|
||||
import 'package:cw_core/crypto_currency.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:mobx/mobx.dart';
|
||||
|
@ -76,7 +73,7 @@ abstract class LightningSendViewModelBase with Store {
|
|||
|
||||
final sdk = await BreezSDK();
|
||||
|
||||
late InputType inputType;
|
||||
late BZG.InputType inputType;
|
||||
|
||||
try {
|
||||
inputType = await sdk.parseInput(input: input);
|
||||
|
@ -84,10 +81,10 @@ abstract class LightningSendViewModelBase with Store {
|
|||
throw Exception("Unknown input type");
|
||||
}
|
||||
|
||||
if (inputType is InputType_Bolt11) {
|
||||
if (inputType is BZG.InputType_Bolt11) {
|
||||
final bolt11 = await sdk.parseInvoice(input);
|
||||
Navigator.of(context).pushNamed(Routes.lightningSendConfirm, arguments: bolt11);
|
||||
} else if (inputType is InputType_LnUrlPay) {
|
||||
} else if (inputType is BZG.InputType_LnUrlPay) {
|
||||
throw Exception("Unsupported input type");
|
||||
} else {
|
||||
throw Exception("Unknown input type");
|
||||
|
|
Loading…
Reference in a new issue