Update address_validator.dart (#1805)

Serhii committed Dec 11, 2024 at 22:39 UTC 1320b3ea3c927176b756d93d6f6ff5207c9c94cc
1 file changed +3 -4
lib/core/address_validator.dart
+3 -4
@@ -106,9 +106,8 @@ class AddressValidator extends TextValidator {
106 case CryptoCurrency.wow:
107 pattern = '[0-9a-zA-Z]+';
108 case CryptoCurrency.bch:
109 - pattern = '^(bitcoincash:)?(q|p)[0-9a-zA-Z]{41,42}';
110 - case CryptoCurrency.bnb:
111 - pattern = '[0-9a-zA-Z]+';
109 + pattern = '(?:bitcoincash:)?(q|p)[0-9a-zA-Z]{41}'
110 + '|[13][a-km-zA-HJ-NP-Z1-9]{25,34}';
111 case CryptoCurrency.hbar:
112 pattern = '[0-9a-zA-Z.]+';
113 case CryptoCurrency.zaddr:
@@ -203,7 +202,7 @@ class AddressValidator extends TextValidator {
202 case CryptoCurrency.avaxc:
203 return [42];
204 case CryptoCurrency.bch:
206 - return [42, 43, 44, 54, 55];
205 + return [42, 54, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35];
206 case CryptoCurrency.bnb:
207 return [42];
208 case CryptoCurrency.nano: