Fix renamming first derivation

This commit is contained in:
poka 2021-11-05 19:37:19 +01:00
parent d1ffe2a5dc
commit b3efa766d6
1 changed files with 7 additions and 12 deletions

View File

@ -136,8 +136,6 @@ class WalletOptionsProvider with ChangeNotifier {
String newConfig = String newConfig =
await _walletConfig.readAsLines().then((List<String> lines) { await _walletConfig.readAsLines().then((List<String> lines) {
int nbrLines = lines.length;
if (nbrLines != 1) {
for (String wLine in lines) { for (String wLine in lines) {
String wID = "${wLine.split(':')[0]}:${wLine.split(':')[1]}"; String wID = "${wLine.split(':')[0]}:${wLine.split(':')[1]}";
String deri = wLine.split(':')[3]; String deri = wLine.split(':')[3];
@ -147,9 +145,6 @@ class WalletOptionsProvider with ChangeNotifier {
} }
} }
return lines.join('\n'); return lines.join('\n');
} else {
return 'true';
}
}); });
await _walletConfig.delete(); await _walletConfig.delete();