mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 19:49:22 +00:00
Merge pull request #89 from cake-tech/CAKE-281-add-addr1-address-format-for-cardano
CAKE-281 | added addr1 address format validation for cardano
This commit is contained in:
commit
7cea1cb5ad
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,8 @@ class AddressValidator extends TextValidator {
|
||||||
case CryptoCurrency.xmr:
|
case CryptoCurrency.xmr:
|
||||||
return '[0-9a-zA-Z]';
|
return '[0-9a-zA-Z]';
|
||||||
case CryptoCurrency.ada:
|
case CryptoCurrency.ada:
|
||||||
return '[0-9a-zA-Z]';
|
return '^[0-9a-zA-Z]{59}\$|^[0-9a-zA-Z]{92}\$|^[0-9a-zA-Z]{104}\$'
|
||||||
|
'|^[0-9a-zA-Z]{105}\$|^addr1[0-9a-zA-Z]{98}\$';
|
||||||
case CryptoCurrency.bch:
|
case CryptoCurrency.bch:
|
||||||
return '[0-9a-zA-Z]';
|
return '[0-9a-zA-Z]';
|
||||||
case CryptoCurrency.bnb:
|
case CryptoCurrency.bnb:
|
||||||
|
@ -54,7 +55,7 @@ class AddressValidator extends TextValidator {
|
||||||
case CryptoCurrency.xmr:
|
case CryptoCurrency.xmr:
|
||||||
return [95, 106];
|
return [95, 106];
|
||||||
case CryptoCurrency.ada:
|
case CryptoCurrency.ada:
|
||||||
return [59, 92, 104, 105];
|
return null;
|
||||||
case CryptoCurrency.bch:
|
case CryptoCurrency.bch:
|
||||||
return [42];
|
return [42];
|
||||||
case CryptoCurrency.bnb:
|
case CryptoCurrency.bnb:
|
||||||
|
|
Loading…
Reference in a new issue