mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-04-19 07:15:54 -04:00
Merge fac51914eeb6b5b71c333a23736da2eed857c5ca into 52f0c20c8cecaf74f136377783956b4aae21b58c
This commit is contained in:
commit
7a41f4d50d
@ -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);
|
||||
}
|
||||
}
|
@ -28,6 +28,6 @@ package haveno.asset;
|
||||
public abstract class Erc20Token extends Token {
|
||||
|
||||
public Erc20Token(String name, String tickerSymbol) {
|
||||
super(name, tickerSymbol, new EtherAddressValidator());
|
||||
super(name, tickerSymbol, new EVMAddressValidator());
|
||||
}
|
||||
}
|
||||
|
@ -18,11 +18,11 @@
|
||||
package haveno.asset.coins;
|
||||
|
||||
import haveno.asset.Coin;
|
||||
import haveno.asset.EtherAddressValidator;
|
||||
import haveno.asset.EVMAddressValidator;
|
||||
|
||||
public class Ether extends Coin {
|
||||
|
||||
public Ether() {
|
||||
super("Ether", "ETH", new EtherAddressValidator());
|
||||
super("Ether", "ETH", new EVMAddressValidator());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user