mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-04-27 14:04:46 +00:00
remove unnecessary code + don't reset change address index to 0
This commit is contained in:
parent
b254ec90ca
commit
14e927a5c9
2 changed files with 0 additions and 20 deletions
|
@ -191,7 +191,6 @@ abstract class LitecoinWalletAddressesBase extends ElectrumWalletAddresses with
|
|||
|
||||
if (mwebEnabled) {
|
||||
await ensureMwebAddressUpToIndexExists(1);
|
||||
currentChangeAddressIndex = 0;
|
||||
updateChangeAddresses();
|
||||
return BitcoinAddressRecord(
|
||||
mwebAddrs[0],
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue