fix zaddr validation (#506)

Sideshift only supports `zs` Sapling addresses now. They do not support `zc` Sprout addresses or `u` unified addresses
This commit is contained in:
Justin Ehrenhofer 2022-09-14 14:46:14 -05:00 committed by GitHub
parent d137e570df
commit bc8900e879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ class AddressValidator extends TextValidator {
case CryptoCurrency.hbar: case CryptoCurrency.hbar:
return '[0-9a-zA-Z.]'; return '[0-9a-zA-Z.]';
case CryptoCurrency.zaddr: case CryptoCurrency.zaddr:
return '^zs[0-9a-zA-Z]{75}\&|^zc[0-9a-zA-Z]{93}\$'; return '^zs[0-9a-zA-Z]{75}';
case CryptoCurrency.zec: case CryptoCurrency.zec:
return '^t1[0-9a-zA-Z]{33}\$|^t3[0-9a-zA-Z]{33}\$'; return '^t1[0-9a-zA-Z]{33}\$|^t3[0-9a-zA-Z]{33}\$';
default: default: