From f3ce1f07c42924a116e9c215ea95fb0a2b0217f0 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Tue, 3 Feb 2015 21:43:39 +0100 Subject: simplified polling && jsonrpc payload creation --- lib/web3.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/web3.js') diff --git a/lib/web3.js b/lib/web3.js index e868e9412..41df75051 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -136,8 +136,8 @@ var setupMethods = function (obj, methods) { var args = Array.prototype.slice.call(arguments); var call = typeof method.call === 'function' ? method.call(args) : method.call; return web3.provider.send({ - call: call, - args: args + method: call, + params: args }); }; }); @@ -150,15 +150,15 @@ var setupProperties = function (obj, properties) { var proto = {}; proto.get = function () { return web3.provider.send({ - call: property.getter + method: property.getter }); }; if (property.setter) { proto.set = function (val) { return web3.provider.send({ - call: property.setter, - args: [val] + method: property.setter, + params: [val] }); }; } -- cgit v1.2.3