Updated on 2026-08-14

This commit is contained in:
Tangem 2020-07-20 22:58:59 +03:00
parent 5ff859d0a9
commit 0a6264c1f9
20 changed files with 736 additions and 105 deletions

View file

@ -161,18 +161,7 @@ public class BtcEngine extends CoinEngine {
}
if (address.contains("$")) { // PayID
String[] addressParts = address.split("\\$");
if (addressParts.length != 2) {
return false;
}
String addressURL = "https://" + addressParts[1] + "/" + addressParts[0];
try {
new URL(addressURL).toURI();
return true;
} catch (Exception e) {
return false;
}
return validatePayId(address);
}
if (address.startsWith("1") || address.startsWith("2") || address.startsWith("3") || address.startsWith("n") || address.startsWith("m")) {