plugeth/lib/event.js

17 lines
346 B
JavaScript
Raw Normal View History

2015-01-29 11:35:21 +00:00
var abi = require('./abi');
var implementationOfEvent = function (event, address, signature) {
return function (options) {
var o = options || {};
o.address = o.address || address;
o.topics = o.topics || [];
o.topics.push(signature);
return o;
};
};
module.exports = implementationOfEvent;