mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-07-01 18:16:48 -04: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
1 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue