edit_token_page.dart - removed flag skipZanoAddressValidation

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
Leo 2024-10-27 00:19:56 +08:00 committed by GitHub
parent 91a063ad89
commit cda4a38b59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,8 +267,7 @@ class _EditTokenPageBodyState extends State<EditTokenPageBody> {
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();
},