diff --git a/lib/main.dart b/lib/main.dart index 7ba1f204a..3f23f440c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -139,7 +139,7 @@ Future main() async { exchangeTemplates: exchangeTemplates, transactionDescriptions: transactionDescriptions, secureStorage: secureStorage, - initialMigrationVersion: 19); + initialMigrationVersion: 21); runApp(App()); }, (error, stackTrace) async { ExceptionHandler.onError(FlutterErrorDetails(exception: error, stack: stackTrace)); diff --git a/lib/view_model/exchange/exchange_view_model.dart b/lib/view_model/exchange/exchange_view_model.dart index 2dd67cab7..34da61b72 100644 --- a/lib/view_model/exchange/exchange_view_model.dart +++ b/lib/view_model/exchange/exchange_view_model.dart @@ -615,6 +615,10 @@ abstract class ExchangeViewModelBase with Store { depositCurrency = CryptoCurrency.xhv; receiveCurrency = CryptoCurrency.btc; break; + case WalletType.ethereum: + depositCurrency = CryptoCurrency.eth; + receiveCurrency = CryptoCurrency.xmr; + break; default: break; } diff --git a/model_generator.sh b/model_generator.sh index f4ef8bdad..d6e417843 100644 --- a/model_generator.sh +++ b/model_generator.sh @@ -2,4 +2,5 @@ cd cw_core && flutter pub get && flutter packages pub run build_runner build --d cd cw_monero && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. cd cw_bitcoin && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. cd cw_haven && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. +cd cw_ethereum && flutter pub get && flutter packages pub run build_runner build --delete-conflicting-outputs && cd .. flutter packages pub run build_runner build --delete-conflicting-outputs \ No newline at end of file