diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-31 08:30:19 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2015-01-31 08:30:19 +0800 |
commit | 995861de4d61ffae9e60ae3fc08b2775b2e81f7b (patch) | |
tree | 74fa44db33570dbccb8f0265f8e9bccd87592936 /lib/contract.js | |
parent | 600c9dd27dde3269a1682b875f82d3db46cee2c9 (diff) | |
download | go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.gz go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.bz2 go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.lz go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.xz go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.tar.zst go-tangerine-995861de4d61ffae9e60ae3fc08b2775b2e81f7b.zip |
event 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', { |