From fe8ad00b9b32c9e6195a9b490afa379ead0501bc Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 3 Jul 2023 16:42:45 -0600 Subject: [PATCH] don't open legacy trades box unless during migration --- lib/db/hive/db.dart | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/db/hive/db.dart b/lib/db/hive/db.dart index afb91fce7..931a1cee4 100644 --- a/lib/db/hive/db.dart +++ b/lib/db/hive/db.dart @@ -13,7 +13,6 @@ import 'dart:isolate'; import 'package:cw_core/wallet_info.dart' as xmr; import 'package:hive/hive.dart'; import 'package:mutex/mutex.dart'; -import 'package:stackwallet/models/exchange/change_now/exchange_transaction.dart'; import 'package:stackwallet/models/exchange/response_objects/trade.dart'; import 'package:stackwallet/models/node_model.dart'; import 'package:stackwallet/models/notification_model.dart'; @@ -62,7 +61,6 @@ class DB { Box? _boxNotifications; Box? _boxWatchedTransactions; Box? _boxWatchedTrades; - Box? _boxTrades; Box? _boxTradesV2; Box? _boxTradeNotes; Box? _boxFavoriteWallets; @@ -137,7 +135,6 @@ class DB { await Hive.openBox(boxNameWatchedTransactions); _boxWatchedTrades = await Hive.openBox(boxNameWatchedTrades); - _boxTrades = await Hive.openBox(boxNameTrades); _boxTradesV2 = await Hive.openBox(boxNameTradesV2); _boxTradeNotes = await Hive.openBox(boxNameTradeNotes); _boxTradeLookup = await Hive.openBox(boxNameTradeLookup);