This commit is contained in:
Marek Kotewicz
2015-01-29 12:35:21 +01:00
parent 61e8ae2f7b
commit 842b8cf323
10 changed files with 106 additions and 10 deletions

16
lib/event.js Normal file
View File

@ -0,0 +1,16 @@
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;