event options

This commit is contained in:
Marek Kotewicz
2015-01-31 01:30:19 +01:00
parent 600c9dd27d
commit 995861de4d
8 changed files with 104 additions and 36 deletions

View File

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