diff options
Diffstat (limited to 'lib/web3.js')
-rw-r--r-- | lib/web3.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/web3.js b/lib/web3.js index 7b8bbd28a..6bf8f7bc0 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -278,8 +278,11 @@ var web3 = { return ret; }; }, - watch: function (params) { - return new web3.filter(params, ethWatch); + + /// @param filter may be a string, object or event + /// @param indexed is optional, this may be an object with optional event indexed params + watch: function (filter, indexed) { + return new web3.filter(filter, indexed, ethWatch); } }, @@ -288,8 +291,11 @@ var web3 = { /// shh object prototype shh: { - watch: function (params) { - return new web3.filter(params, shhWatch); + + /// @param filter may be a string, object or event + /// @param indexed is optional, this may be an object with optional event indexed params + watch: function (filter, indexed) { + return new web3.filter(filter, indexed, shhWatch); } }, |