aboutsummaryrefslogtreecommitdiffstats
path: root/lib/event.js
blob: e8312ccdb2913437b27e8dcacdf7b1ace28720bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

var abi = require('./abi');

var implementationOfEvent = function (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;