Merge pull request #372 from cake-tech/CW-77-Add-more-addresses-for-haven-validation

added validation of hvx,hvi,hvs Haven addresses
This commit is contained in:
mkyq 2022-06-13 12:31:16 +01:00 committed by GitHub
commit 427efb44fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ class AddressValidator extends TextValidator {
case CryptoCurrency.xrp:
return '^[0-9a-zA-Z]{34}\$|^X[0-9a-zA-Z]{46}\$';
case CryptoCurrency.xhv:
case CryptoCurrency.xhv:
return '^hvx|hvi|hvs[0-9a-zA-Z]';
case CryptoCurrency.xag:
case CryptoCurrency.xau:
case CryptoCurrency.xaud:
@ -102,7 +102,6 @@ class AddressValidator extends TextValidator {
case CryptoCurrency.xrp:
return null;
case CryptoCurrency.xhv:
case CryptoCurrency.xhv:
case CryptoCurrency.xag:
case CryptoCurrency.xau:
case CryptoCurrency.xaud: