diff 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; }; }; |