diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-04 04:43:39 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-02-04 04:43:39 +0800 |
commit | f3ce1f07c42924a116e9c215ea95fb0a2b0217f0 (patch) | |
tree | 0c37c6ba414463648b33811832b90e84530f6ff1 /lib/web3.js | |
parent | ddc17196da36c1ad660b70f33f8b4eaaccdbdda8 (diff) | |
download | dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.tar dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.tar.gz dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.tar.bz2 dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.tar.lz dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.tar.xz dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.tar.zst dexon-f3ce1f07c42924a116e9c215ea95fb0a2b0217f0.zip |
simplified polling && jsonrpc payload creation
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] }); }; } |