From cda4a38b59f21ed0cbf2c31c8552add49eae3f53 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 27 Oct 2024 00:19:56 +0800 Subject: [PATCH] edit_token_page.dart - removed flag skipZanoAddressValidation Co-authored-by: Omar Hatem --- lib/src/screens/dashboard/edit_token_page.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/screens/dashboard/edit_token_page.dart b/lib/src/screens/dashboard/edit_token_page.dart index 28c742de3..f64b61daf 100644 --- a/lib/src/screens/dashboard/edit_token_page.dart +++ b/lib/src/screens/dashboard/edit_token_page.dart @@ -267,8 +267,7 @@ class _EditTokenPageBodyState extends State { placeholder: S.of(context).token_contract_address, options: [AddressTextFieldOption.paste], buttonColor: Theme.of(context).hintColor, - // we don't use zano addresses validations here, addresses and asset ids are difference entities - validator: AddressValidator(type: widget.homeSettingsViewModel.nativeToken, skipZanoAddressValidation: true), + validator: widget.homeSettingsViewModel.walletType == WalletType.zano ? null : AddressValidator(type: widget.homeSettingsViewModel.nativeToken), onPushPasteButton: (_) { _pasteText(); },