From 030e1e9f3f3fe4eb941c4fb3893fc65312128502 Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Fri, 13 Jan 2023 20:47:02 +0200 Subject: [PATCH] Add case for ethereum to fetch it's seeds --- lib/view_model/wallet_keys_view_model.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/view_model/wallet_keys_view_model.dart b/lib/view_model/wallet_keys_view_model.dart index dcfa97701..cb781b6e4 100644 --- a/lib/view_model/wallet_keys_view_model.dart +++ b/lib/view_model/wallet_keys_view_model.dart @@ -12,7 +12,9 @@ class WalletKeysViewModel = WalletKeysViewModelBase with _$WalletKeysViewModel; abstract class WalletKeysViewModelBase with Store { WalletKeysViewModelBase(WalletBase wallet) - : title = wallet.type == WalletType.bitcoin || wallet.type == WalletType.litecoin + : title = wallet.type == WalletType.bitcoin || + wallet.type == WalletType.litecoin || + wallet.type == WalletType.ethereum ? S.current.wallet_seed : S.current.wallet_keys, items = ObservableList() { @@ -48,7 +50,9 @@ abstract class WalletKeysViewModelBase with Store { ]); } - if (wallet.type == WalletType.bitcoin || wallet.type == WalletType.litecoin) { + if (wallet.type == WalletType.bitcoin || + wallet.type == WalletType.litecoin || + wallet.type == WalletType.ethereum) { items.addAll([ StandartListItem(title: S.current.wallet_seed, value: wallet.seed), ]);