mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 12:39:37 +00:00
Add case for ethereum to fetch it's seeds
This commit is contained in:
parent
95abe7c8ec
commit
030e1e9f3f
1 changed files with 6 additions and 2 deletions
|
@ -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),
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue