event options
This commit is contained in:
14
lib/web3.js
14
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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user