Browse Source

small changes

cl-refactor
yann300 10 years ago
parent
commit
42bd1dc660
  1. 7
      mix/qml/js/ProjectModel.js

7
mix/qml/js/ProjectModel.js

@ -425,8 +425,6 @@ function checkEthPath(dappUrl, callBack)
{ {
var str = createString(dappUrl[0]); var str = createString(dappUrl[0]);
var requests = []; var requests = [];
console.log(" ggg " + deploymentDialog.currentAccount);
console.log(" ggg " + deploymentDialog.eth);
requests.push({ requests.push({
//register() //register()
jsonrpc: "2.0", jsonrpc: "2.0",
@ -435,7 +433,6 @@ function checkEthPath(dappUrl, callBack)
id: jsonRpcRequestId++ id: jsonRpcRequestId++
}); });
rpcCall(requests, function (httpRequest, response) { rpcCall(requests, function (httpRequest, response) {
console.log("checking in path eth: found " + response);
var res = JSON.parse(response); var res = JSON.parse(response);
var addr = normalizeAddress(res[0].result); var addr = normalizeAddress(res[0].result);
if (addr === "") if (addr === "")
@ -478,7 +475,6 @@ function checkRegistration(dappUrl, addr, callBack)
}); });
rpcCall(requests, function (httpRequest, response) { rpcCall(requests, function (httpRequest, response) {
console.log(" >> " +response);
var res = JSON.parse(response); var res = JSON.parse(response);
var nextAddr = normalizeAddress(res[1].result); var nextAddr = normalizeAddress(res[1].result);
var errorTxt; var errorTxt;
@ -530,7 +526,6 @@ function checkRegistration(dappUrl, addr, callBack)
deploymentDialog.waitForTrCountToIncrement(function() { deploymentDialog.waitForTrCountToIncrement(function() {
var crLevel = createString(dappUrl[0]).encodeValueAsString(); var crLevel = createString(dappUrl[0]).encodeValueAsString();
console.log("registering " + dappUrl[0]);
requests.push({ requests.push({
//setRegister() //setRegister()
jsonrpc: "2.0", jsonrpc: "2.0",
@ -613,7 +608,7 @@ function normalizeAddress(addr)
var i = 0; var i = 0;
for (var k in addr) for (var k in addr)
{ {
if (addr[k] !== "0") if (addr[k] !== "0" || addr.length === 40)
break; break;
else else
i++; i++;

Loading…
Cancel
Save