event options
This commit is contained in:
11
lib/event.js
11
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;
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user