events
This commit is contained in:
@ -282,7 +282,10 @@ 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) {
|
||||
return new web3.filter(filter, indexed, ethWatch);
|
||||
if (filter._isEvent) {
|
||||
return filter(indexed);
|
||||
}
|
||||
return new web3.filter(filter, ethWatch);
|
||||
}
|
||||
},
|
||||
|
||||
@ -293,9 +296,8 @@ var web3 = {
|
||||
shh: {
|
||||
|
||||
/// @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);
|
||||
return new web3.filter(filter, shhWatch);
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user