eth.filter next param optional

This commit is contained in:
Marek Kotewicz
2015-01-31 16:01:41 +01:00
parent 589c4fb30f
commit 688030ecb6
5 changed files with 20 additions and 9 deletions

View File

@ -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);
}