go-ethereum/lib/event.js

17 lines
339 B
JavaScript
Raw Normal View History

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