Cw 805 fix bch refund address (#1782)

* fix bch address format for exolix, stealth, thorchain, simpleswap

* exclude SP and MWEB from the exchange address book

* address pr review comments
This commit is contained in:
Serhii 2024-11-05 11:33:24 +02:00 committed by GitHub
parent b8ffd47f06
commit 459f0d352d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 32 additions and 18 deletions

View file

@ -106,8 +106,7 @@ class AddressValidator extends TextValidator {
case CryptoCurrency.wow:
pattern = '[0-9a-zA-Z]+';
case CryptoCurrency.bch:
pattern =
'(?!bitcoincash:)[0-9a-zA-Z]*|(?!bitcoincash:)q|p[0-9a-zA-Z]{41}|(?!bitcoincash:)q|p[0-9a-zA-Z]{42}|bitcoincash:q|p[0-9a-zA-Z]{41}|bitcoincash:q|p[0-9a-zA-Z]{42}';
pattern = '^(bitcoincash:)?(q|p)[0-9a-zA-Z]{41,42}';
case CryptoCurrency.bnb:
pattern = '[0-9a-zA-Z]+';
case CryptoCurrency.hbar: