Add case for ethereum to fetch it's seeds

This commit is contained in:
OmarHatem 2023-01-13 20:47:02 +02:00
parent 95abe7c8ec
commit 030e1e9f3f

View file

@ -12,7 +12,9 @@ class WalletKeysViewModel = WalletKeysViewModelBase with _$WalletKeysViewModel;
abstract class WalletKeysViewModelBase with Store { abstract class WalletKeysViewModelBase with Store {
WalletKeysViewModelBase(WalletBase wallet) 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_seed
: S.current.wallet_keys, : S.current.wallet_keys,
items = ObservableList<StandartListItem>() { items = ObservableList<StandartListItem>() {
@ -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([ items.addAll([
StandartListItem(title: S.current.wallet_seed, value: wallet.seed), StandartListItem(title: S.current.wallet_seed, value: wallet.seed),
]); ]);