From 995861de4d61ffae9e60ae3fc08b2775b2e81f7b Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Sat, 31 Jan 2015 01:30:19 +0100 Subject: event options --- lib/contract.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/contract.js') 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', { -- cgit v1.2.3