diff --git a/cw_bitcoin/lib/litecoin_wallet_addresses.dart b/cw_bitcoin/lib/litecoin_wallet_addresses.dart index c4e4ecd6a..bbb987766 100644 --- a/cw_bitcoin/lib/litecoin_wallet_addresses.dart +++ b/cw_bitcoin/lib/litecoin_wallet_addresses.dart @@ -191,7 +191,6 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with if (mwebEnabled) { await ensureMwebAddressUpToIndexExists(1); - currentChangeAddressIndex = 0; updateChangeAddresses(); return BitcoinAddressRecord( mwebAddrs[0], diff --git a/lib/view_model/settings/mweb_settings_view_model.dart b/lib/view_model/settings/mweb_settings_view_model.dart index 3b0fa620a..151854a2e 100644 --- a/lib/view_model/settings/mweb_settings_view_model.dart +++ b/lib/view_model/settings/mweb_settings_view_model.dart @@ -49,25 +49,6 @@ abstract class MwebSettingsViewModelBase with Store { _settingsStore.mwebAlwaysScan = value; } - Future<bool> saveLogsLocally(String inAppPath, String localPath) async { - try { - final logsFile = File(inAppPath); - if (!logsFile.existsSync()) { - throw Exception('Logs file does not exist'); - } - // await logsFile.copy(localPath); - await File(localPath).writeAsBytes(await logsFile.readAsBytes()); - return true; - } catch (e, s) { - ExceptionHandler.onError(FlutterErrorDetails( - exception: e, - stack: s, - library: "Export Logs", - )); - return false; - } - } - Future<String> getAbbreviatedLogs() async { final appSupportPath = (await getApplicationSupportDirectory()).path; final logsFile = File("$appSupportPath/logs/debug.log");