minor fix

This commit is contained in:
Serhii 2023-12-13 17:33:51 +02:00
parent 50299e60f0
commit 1c53229ea0
2 changed files with 7 additions and 0 deletions

View file

@ -1,6 +1,7 @@
import 'package:cake_wallet/entities/exchange_api_mode.dart';
import 'package:cake_wallet/entities/fiat_api_mode.dart';
import 'package:cake_wallet/entities/seed_phrase_length.dart';
import 'package:cake_wallet/entities/seed_type.dart';
import 'package:cake_wallet/store/settings_store.dart';
import 'package:cw_core/wallet_type.dart';
import 'package:mobx/mobx.dart';
@ -37,6 +38,9 @@ abstract class AdvancedPrivacySettingsViewModelBase with Store {
@computed
SeedPhraseLength get seedPhraseLength => _settingsStore.seedPhraseLength;
@computed
bool get isPolySeed => _settingsStore.moneroSeedType == SeedType.polyseed;
@action
void setFiatApiMode(FiatApiMode fiatApiMode) => _settingsStore.fiatApiMode = fiatApiMode;

View file

@ -38,6 +38,9 @@ abstract class WalletNewVMBase extends WalletCreationVM with Store {
int get seedPhraseWordsLength {
switch (type) {
case WalletType.monero:
if(advancedPrivacySettingsViewModel.isPolySeed) {
return 16;
}
return 25;
case WalletType.ethereum:
case WalletType.bitcoinCash: