mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +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:
|
case CryptoCurrency.xlm:
|
||||||
return '[0-9a-zA-Z]';
|
return '[0-9a-zA-Z]';
|
||||||
case CryptoCurrency.xrp:
|
case CryptoCurrency.xrp:
|
||||||
return '[0-9a-zA-Z]';
|
return '^[0-9a-zA-Z]{34}\$|^X[0-9a-zA-Z]{46}\$';
|
||||||
default:
|
default:
|
||||||
return '[0-9a-zA-Z]';
|
return '[0-9a-zA-Z]';
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ class AddressValidator extends TextValidator {
|
||||||
case CryptoCurrency.xlm:
|
case CryptoCurrency.xlm:
|
||||||
return [56];
|
return [56];
|
||||||
case CryptoCurrency.xrp:
|
case CryptoCurrency.xrp:
|
||||||
return [34];
|
return null;
|
||||||
default:
|
default:
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue