diff options
Diffstat (limited to 'lib/contract.js')
-rw-r--r-- | lib/contract.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/contract.js b/lib/contract.js index eff16cca4..6056581d4 100644 --- a/lib/contract.js +++ b/lib/contract.js @@ -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', { |