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