mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-30 11:09:00 +00:00
Update cw_bitcoin/lib/litecoin_wallet.dart
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
parent
56c505da59
commit
0f5ee476f1
1 changed files with 2 additions and 1 deletions
|
@ -317,11 +317,12 @@ abstract class LitecoinWalletBase extends ElectrumWallet with Store {
|
|||
final oldBoxName = "${walletInfo.name.replaceAll(" ", "_")}_${MwebUtxo.boxName}";
|
||||
final newBoxName = "${newWalletName.replaceAll(" ", "_")}_${MwebUtxo.boxName}";
|
||||
|
||||
final oldBox = await Hive.openBox<MwebUtxo>(oldBoxName);
|
||||
final oldBox = await CakeHive.openBox<MwebUtxo>(oldBoxName);
|
||||
mwebUtxosBox = await CakeHive.openBox<MwebUtxo>(newBoxName);
|
||||
for (final key in oldBox.keys) {
|
||||
await mwebUtxosBox.put(key, oldBox.get(key)!);
|
||||
}
|
||||
oldBox.deleteFromDisk();
|
||||
|
||||
await super.renameWalletFiles(newWalletName);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue