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/event.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/event.js')
-rw-r--r-- | lib/event.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/event.js b/lib/event.js index ae2195381..ea5f5b71e 100644 --- a/lib/event.js +++ b/lib/event.js @@ -20,13 +20,16 @@ * @date 2014 */ +var abi = require('./abi'); + var implementationOfEvent = function (address, signature) { - return function (options) { + // valid options are 'earliest', 'latest', 'offset' and 'max', as defined for 'eth.watch' + return function (indexed, options) { var o = options || {}; - o.address = o.address || address; - o.topics = o.topics || []; - o.topics.push(signature); + o.address = address; + o.topic = []; + o.topic.push(signature); return o; }; }; |