mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +00:00
remove unnended event listeners
This commit is contained in:
parent
86e1b115cc
commit
a48a05cd27
@ -3,7 +3,6 @@ let async = require('async');
|
||||
const cloneDeep = require('clone-deep');
|
||||
|
||||
let utils = require('../utils/utils.js');
|
||||
const constants = require('../constants');
|
||||
|
||||
// TODO: create a contract object
|
||||
|
||||
@ -21,13 +20,6 @@ class ContractsManager {
|
||||
this.events = options.events;
|
||||
this.compileError = false;
|
||||
|
||||
self.events.on(constants.events.contractFilesChanged, (newContractFiles) => {
|
||||
self.contractFiles = newContractFiles;
|
||||
});
|
||||
self.events.on(constants.events.contractConfigChanged, (newContracts) => {
|
||||
self.contractsConfig = newContracts;
|
||||
});
|
||||
|
||||
self.events.setCommandHandler('contracts:list', (cb) => {
|
||||
cb(self.compileError, self.listContracts());
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user