remove unnecessary code + don't reset change address index to 0

This commit is contained in:
Matthew Fosse 2025-01-22 17:16:57 -08:00
parent b254ec90ca
commit 14e927a5c9
2 changed files with 0 additions and 20 deletions

View file

@ -191,7 +191,6 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
if (mwebEnabled) {
await ensureMwebAddressUpToIndexExists(1);
currentChangeAddressIndex = 0;
updateChangeAddresses();
return BitcoinAddressRecord(
mwebAddrs[0],

View file

@ -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");