fix monero.com build
Omar committed
May 6, 2026 at 23:21 UTC
a0e1dd70040f7adc042cb3272b2a421ca8b1ef3c
4 files changed
+13
-14
cw_core/lib/exceptions.dart
+10
@@ -66,3 +66,13 @@ class RestoreFromSeedException implements Exception {
66
67
RestoreFromSeedException(this.message);
68
}
69
+
70
+class WalletDeprecationException implements Exception {
71
+ final String seed;
72
+ final CryptoCurrency curr;
73
+
74
+ @override
75
+ String toString() => "Wallet type no longer supported";
76
+
77
+ WalletDeprecationException({required this.seed, required this.curr});
78
+}
\ No newline at end of file
cw_wownero/lib/wownero_wallet_service.dart
+1
-11
@@ -1,6 +1,6 @@
1
import 'dart:ffi';
2
import 'dart:io';
3
-import 'package:cw_core/crypto_currency.dart';
3
+import 'package:cw_core/exceptions.dart' show WalletDeprecationException;
4
import 'package:cw_core/monero_wallet_utils.dart';
5
import 'package:cw_core/pathForWallet.dart';
6
import 'package:cw_core/unspent_coins_info.dart';
@@ -21,16 +21,6 @@ import 'package:hive/hive.dart';
21
import 'package:polyseed/polyseed.dart';
22
import 'package:monero/wownero.dart' as wownero;
23
24
-class WalletDeprecationException implements Exception {
25
- final String seed;
26
- final CryptoCurrency curr;
27
-
28
- @override
29
- String toString() => "Wallet type no longer supported";
30
-
31
- WalletDeprecationException({required this.seed, required this.curr});
32
-}
33
-
24
class WowneroNewWalletCredentials extends WalletCredentials {
25
WowneroNewWalletCredentials(
26
{required String name, required this.language, required this.isPolyseed, this.passphrase, String? password})
lib/core/wallet_loading_service.dart
+1
-2
@@ -10,13 +10,12 @@ import 'package:cake_wallet/reactions/on_authentication_state_change.dart';
10
import 'package:cake_wallet/src/widgets/alert_with_two_actions.dart';
11
import 'package:cake_wallet/utils/exception_handler.dart';
12
import 'package:cake_wallet/utils/show_pop_up.dart';
13
-import 'package:cw_core/cake_hive.dart';
13
+import 'package:cw_core/exceptions.dart' show WalletDeprecationException;
14
import 'package:cw_core/utils/print_verbose.dart';
15
import 'package:cw_core/wallet_base.dart';
16
import 'package:cw_core/wallet_info.dart';
17
import 'package:cw_core/wallet_service.dart';
18
import 'package:cw_core/wallet_type.dart';
19
-import 'package:cw_wownero/wownero_wallet_service.dart';
19
import 'package:flutter/material.dart';
20
import 'package:flutter/services.dart';
21
import 'package:shared_preferences/shared_preferences.dart';
lib/view_model/settings/privacy_settings_view_model.dart
+1
-1
@@ -109,7 +109,7 @@ abstract class PrivacySettingsViewModelBase with Store {
109
bool get canUsePayjoin => _wallet.type == WalletType.bitcoin && DeviceInfo.instance.isMobile;
110
111
@computed
112
- bool get canUseLightning => _wallet.type == WalletType.bitcoin && !Platform.isWindows;
112
+ bool get canUseLightning => _wallet.type == WalletType.bitcoin && !Platform.isWindows && !Platform.isLinux;
113
114
@computed
115
bool get useLightning => _wallet.type == WalletType.bitcoin && bitcoin!.useLightning(_wallet);