From 21b5e888ddc7af01084849497f54a1f02a33b294 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz <marek.kotewicz@gmail.com> Date: Tue, 14 Oct 2014 19:27:44 +0200 Subject: [PATCH] default params temporarily remode --- libethrpc/eth.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libethrpc/eth.js b/libethrpc/eth.js index 71cffcacf..b42c29e7a 100644 --- a/libethrpc/eth.js +++ b/libethrpc/eth.js @@ -70,7 +70,6 @@ window.eth = (function ethScope() { m_reqId++ var request = new XMLHttpRequest(); request.open("POST", "http://localhost:8080", false) -// console.log("Sending " + JSON.stringify(req)) request.send(JSON.stringify(req)) return reformat(m, JSON.parse(request.responseText).result) } @@ -100,13 +99,8 @@ window.eth = (function ethScope() { var am = "get" + m.slice(0, 1).toUpperCase() + m.slice(1); var getParams = function(a) { var p = s.params ? {} : null; - if (m == "stateAt") - if (a.length == 2) - a[2] = "0"; - else - a[2] = String(a[2]); for (j in s.order) - p[s.order[j]] = (s.order[j][0] === "b") ? a[j].unbin() : a[j]; + p[s.order[j]] = a[j]; return p }; if (m == "create" || m == "transact")