mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-24 10:54:13 +01:00
Make SP scanning, wallet-specific (#2383)
This commit is contained in:
@@ -28,7 +28,7 @@ class AddressValidator extends TextValidator {
|
||||
pattern: getPattern(type, isTestnet: isTestnet),
|
||||
length: getLength(type));
|
||||
|
||||
static String getPattern(CryptoCurrency type, {required bool isTestnet}) {
|
||||
static String getPattern(CryptoCurrency type, {bool isTestnet = false}) {
|
||||
var pattern = "";
|
||||
if (type is Erc20Token) {
|
||||
pattern = '0x[0-9a-zA-Z]+';
|
||||
|
||||
Reference in New Issue
Block a user