From 688030ecb615cbf97c428cf1dd2e337380079168 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Sat, 31 Jan 2015 16:01:41 +0100 Subject: eth.filter next param optional --- lib/web3.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/web3.js b/lib/web3.js index c99c76421..c3126afc4 100644 --- a/lib/web3.js +++ b/lib/web3.js @@ -250,10 +250,11 @@ var web3 = { }, /// @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) { + /// @param indexed is optional, this is an object with optional event indexed params + /// @param options is optional, this is an object with optional event options ('max'...) + watch: function (filter, indexed, options) { if (filter._isEvent) { - return filter(indexed); + return filter(indexed, options); } return new web3.filter(filter, ethWatch); } -- cgit v1.2.3