some fixes after merge

This commit is contained in:
leo 2024-03-10 13:08:35 +00:00
parent 26e3a6caa8
commit ce952294af
6 changed files with 6 additions and 18 deletions

View file

@ -11,7 +11,7 @@ class AddressValidator extends TextValidator {
: super(
errorMessage: S.current.error_text_address,
useAdditionalValidation: type == CryptoCurrency.btc
? bitcoin.Address.validateAddress
? (String txt) => validateAddress(address: txt, network: BitcoinNetwork.mainnet)
: type == CryptoCurrency.zano
? ZanoUtils.validateAddress
: null,

View file

@ -31,8 +31,6 @@ class SeedValidator extends Validator<MnemonicItem> {
return monero!.getMoneroWordList(language);
case WalletType.haven:
return haven!.getMoneroWordList(language);
case WalletType.zano:
return zano!.getWordList(language);
case WalletType.ethereum:
return ethereum!.getEthereumWordList(language);
case WalletType.bitcoinCash:
@ -44,6 +42,8 @@ class SeedValidator extends Validator<MnemonicItem> {
return polygon!.getPolygonWordList(language);
case WalletType.solana:
return solana!.getSolanaWordList(language);
case WalletType.zano:
return zano!.getWordList(language);
default:
return [];
}

View file

@ -795,9 +795,6 @@ Future<void> setup({
getIt.registerFactory(() => ConnectionSyncPage(getIt.get<DashboardViewModel>()));
getIt.registerFactory(
() => ConnectionSyncPage(getIt.get<DashboardViewModel>()));
getIt.registerFactory(() => SecurityBackupPage(
getIt.get<SecuritySettingsViewModel>(), getIt.get<AuthService>()));

View file

@ -388,18 +388,6 @@ Node? getZanoDefaultNode({required Box<Node> nodes}) {
?? nodes.values.firstWhereOrNull((node) => node.type == WalletType.zano);
}
Node? getZanoDefaultNode({required Box<Node> nodes}) {
return nodes.values.firstWhereOrNull(
(Node node) => node.uriRaw == zanoDefaultNodeUri)
?? nodes.values.firstWhereOrNull((node) => node.type == WalletType.zano);
}
Node? getZanoDefaultNode({required Box<Node> nodes}) {
return nodes.values.firstWhereOrNull(
(Node node) => node.uriRaw == zanoDefaultNodeUri)
?? nodes.values.firstWhereOrNull((node) => node.type == WalletType.zano);
}
Node getMoneroDefaultNode({required Box<Node> nodes}) {
final timeZone = DateTime.now().timeZoneOffset.inHours;
var nodeUri = '';

View file

@ -71,6 +71,7 @@ class ProvidersHelper {
return [ProviderType.askEachTime, ProviderType.onramper, ProviderType.robinhood];
case WalletType.none:
case WalletType.haven:
case WalletType.zano:
return [];
}
}
@ -102,6 +103,7 @@ class ProvidersHelper {
case WalletType.banano:
case WalletType.none:
case WalletType.haven:
case WalletType.zano:
return [];
}
}

View file

@ -43,6 +43,7 @@ abstract class AdvancedPrivacySettingsViewModelBase with Store {
case WalletType.haven:
case WalletType.nano:
case WalletType.banano:
case WalletType.zano:
return false;
}
}