mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
CAKE-233 | added new XRP address format, starting with an X, to address_validator.dart
This commit is contained in:
parent
41b436d9d4
commit
eb425572d6
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class AddressValidator extends TextValidator {
|
|||
case CryptoCurrency.xlm:
|
||||
return '[0-9a-zA-Z]';
|
||||
case CryptoCurrency.xrp:
|
||||
return '[0-9a-zA-Z]';
|
||||
return '^[0-9a-zA-Z]{34}\$|^X[0-9a-zA-Z]{46}\$';
|
||||
default:
|
||||
return '[0-9a-zA-Z]';
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ class AddressValidator extends TextValidator {
|
|||
case CryptoCurrency.xlm:
|
||||
return [56];
|
||||
case CryptoCurrency.xrp:
|
||||
return [34];
|
||||
return null;
|
||||
default:
|
||||
return [];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue