Renamed EtherAddressValidator class for EVMAddressValidator

Using this address validation for all EVM addresses instead of only Ethereum
This commit is contained in:
XMRZombie 2024-12-03 14:22:06 +00:00 committed by GitHub
parent dc8d854709
commit b35e7c68a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,14 +27,16 @@ package haveno.asset;
* *
* @author Chris Beams * @author Chris Beams
* @since 0.7.0 * @since 0.7.0
*
* Edit: renamed EVMAddressValidator for being used by all EVMs
*/ */
public class EtherAddressValidator extends RegexAddressValidator { public class EVMAddressValidator extends RegexAddressValidator {
public EtherAddressValidator() { public EVMAddressValidator() {
super("^(0x)?[0-9a-fA-F]{40}$"); super("^(0x)?[0-9a-fA-F]{40}$");
} }
public EtherAddressValidator(String errorMessageI18nKey) { public EVMAddressValidator(String errorMessageI18nKey) {
super("^(0x)?[0-9a-fA-F]{40}$", errorMessageI18nKey); super("^(0x)?[0-9a-fA-F]{40}$", errorMessageI18nKey);
} }
} }