Verified Commit c3863b84 authored by Sarath's avatar Sarath
Browse files

Dojo API url fix

parent 3e4b5ab9
......@@ -272,7 +272,11 @@ public class SamouraiSentinel {
obj.put("receives", ReceiveLookAtUtil.getInstance().toJSON());
if(DojoUtil.getInstance(context).getDojoParams() != null){
obj.put("dojo", DojoUtil.getInstance(context).toJSON().toString());
try {
obj.put("dojo", DojoUtil.getInstance(context).toJSON().toString());
} catch (JSONException e) {
e.printStackTrace();
}
}
......
......@@ -72,7 +72,6 @@ public class DojoUtil {
String url = getUrl(dojoParams);
if (url.charAt(url.length() - 1) != '/') {
url = url + "/";
JSONObject obj = new JSONObject(dojoParams);
if (obj.has("pairing") && obj.getJSONObject("pairing").has("url")) {
obj.getJSONObject("pairing").put("url", url);
......@@ -80,7 +79,7 @@ public class DojoUtil {
}
}
if (SamouraiSentinel.getInstance().isTestNet()) {
WebUtil.SAMOURAI_API2_TOR = url;
WebUtil.SAMOURAI_API2_TESTNET_TOR = url;
} else {
WebUtil.SAMOURAI_API2_TOR = url;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment