diff options
Diffstat (limited to 'lib/web3.js')
-rw-r--r-- | lib/web3.js | 10 |
1 files changed, 5 insertions, 5 deletions
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] }); }; } |