mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
Merge branch 'staging' into fix/epic-delete
This commit is contained in:
commit
9a04f5db31
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue