mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-25 23:39:26 -05:00
Renamed EtherAddressValidator class for EVMAddressValidator
Using this address validation for all EVM addresses instead of only Ethereum
This commit is contained in:
parent
dc8d854709
commit
b35e7c68a6
@ -27,14 +27,16 @@ package haveno.asset;
|
||||
*
|
||||
* @author Chris Beams
|
||||
* @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}$");
|
||||
}
|
||||
|
||||
public EtherAddressValidator(String errorMessageI18nKey) {
|
||||
public EVMAddressValidator(String errorMessageI18nKey) {
|
||||
super("^(0x)?[0-9a-fA-F]{40}$", errorMessageI18nKey);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user