aboutsummaryrefslogtreecommitdiffstats
path: root/lib/event.js
blob: 724acde81bec31f7fd615e05506e53f1981af34b (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 (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;