mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
fix hive error
This commit is contained in:
parent
79faeb98af
commit
b872b43b75
1 changed files with 3 additions and 1 deletions
|
@ -464,7 +464,9 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
||||||
final oldBox = await CakeHive.openBox<MwebUtxo>(oldBoxName);
|
final oldBox = await CakeHive.openBox<MwebUtxo>(oldBoxName);
|
||||||
mwebUtxosBox = await CakeHive.openBox<MwebUtxo>(newBoxName);
|
mwebUtxosBox = await CakeHive.openBox<MwebUtxo>(newBoxName);
|
||||||
for (final key in oldBox.keys) {
|
for (final key in oldBox.keys) {
|
||||||
await mwebUtxosBox.put(key, oldBox.get(key)!);
|
final value = oldBox.get(key);
|
||||||
|
await oldBox.delete(key);
|
||||||
|
await mwebUtxosBox.put(key, value!);
|
||||||
}
|
}
|
||||||
oldBox.deleteFromDisk();
|
oldBox.deleteFromDisk();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue