CWA-169 | removed setup_locator and got the box as parameter in MorphTokenExchangeProvider

This commit is contained in:
Oleksandr Sobol
2020-02-10 21:35:44 +02:00
parent 163d1c48a4
commit fdeb66e643
7 changed files with 10 additions and 25 deletions
-3
View File
@@ -35,7 +35,6 @@ import 'package:cake_wallet/src/domain/common/wallet_type.dart';
import 'package:cake_wallet/src/domain/services/wallet_service.dart';
import 'package:cake_wallet/generated/i18n.dart';
import 'package:cake_wallet/src/domain/common/language.dart';
import 'package:cake_wallet/src/domain/common/setup_locator.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
@@ -66,8 +65,6 @@ void main() async {
await Hive.openBox<Trade>(Trade.boxName, encryptionKey: tradesBoxKey);
final walletInfoSource = await Hive.openBox<WalletInfo>(WalletInfo.boxName);
setupLocator(trades);
final sharedPreferences = await SharedPreferences.getInstance();
final walletService = WalletService();
final walletListService = WalletListService(