event options

This commit is contained in:
Marek Kotewicz
2015-01-31 01:30:19 +01:00
parent 600c9dd27d
commit 995861de4d
8 changed files with 104 additions and 36 deletions

View File

@ -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', {