event options
This commit is contained in:
@ -131,7 +131,11 @@ var addEventsToContract = function (contract, desc, address) {
|
||||
var o = event.apply(null, params);
|
||||
return web3.eth.watch(o);
|
||||
};
|
||||
|
||||
// this property should be used by eth.filter to check if object is an event
|
||||
impl._isEvent = true;
|
||||
|
||||
// TODO: we can remove address && topic properties, they are not used anymore since we introduced _isEvent
|
||||
impl.address = address;
|
||||
|
||||
Object.defineProperty(impl, 'topic', {
|
||||
|
Reference in New Issue
Block a user