Merge branch 'staging' into fix/epic-delete

This commit is contained in:
Diego Salazar 2023-03-03 08:54:32 -07:00 committed by GitHub
commit 9a04f5db31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1807,6 +1807,11 @@ class EpicCashWallet extends CoinServiceAPI
@override
bool validateAddress(String address) {
//Invalid address that contains HTTP and epicbox domain
if ((address.startsWith("http://") || address.startsWith("https://")) &&
address.contains("@")) {
return false;
}
if (address.startsWith("http://") || address.startsWith("https://")) {
if (Uri.tryParse(address) != null) {
return true;
@ -1815,7 +1820,11 @@ class EpicCashWallet extends CoinServiceAPI
String validate = validateSendAddress(address);
if (int.parse(validate) == 1) {
return true;
//Check if address contrains a domain
if (address.contains("@")) {
return true;
}
return false;
} else {
return false;
}