Make SP scanning, wallet-specific (#2383)

This commit is contained in:
Omar Hatem
2025-07-12 19:58:11 +03:00
committed by GitHub
parent 332d055efe
commit ab5849c57d
13 changed files with 34 additions and 50 deletions
+1 -1
View File
@@ -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]+';