mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-10 23:52:13 +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) {
|
if (mwebEnabled) {
|
||||||
await ensureMwebAddressUpToIndexExists(1);
|
await ensureMwebAddressUpToIndexExists(1);
|
||||||
currentChangeAddressIndex = 0;
|
|
||||||
updateChangeAddresses();
|
updateChangeAddresses();
|
||||||
return BitcoinAddressRecord(
|
return BitcoinAddressRecord(
|
||||||
mwebAddrs[0],
|
mwebAddrs[0],
|
||||||
|
|
|
@ -49,25 +49,6 @@ abstract class MwebSettingsViewModelBase with Store {
|
||||||
_settingsStore.mwebAlwaysScan = value;
|
_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 {
|
Future<String> getAbbreviatedLogs() async {
|
||||||
final appSupportPath = (await getApplicationSupportDirectory()).path;
|
final appSupportPath = (await getApplicationSupportDirectory()).path;
|
||||||
final logsFile = File("$appSupportPath/logs/debug.log");
|
final logsFile = File("$appSupportPath/logs/debug.log");
|
||||||
|
|
Loading…
Reference in a new issue