mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 09:47:35 +00:00
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:
parent
d137e570df
commit
bc8900e879
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue