prepare to make it a module

This commit is contained in:
Iuri Matias 2018-07-27 13:06:36 -04:00
parent be3a79ce39
commit 4ecb44e1c9
2 changed files with 7 additions and 6 deletions

View File

@ -5,13 +5,13 @@ const utils = require('../utils/utils.js');
//require("../utils/debug_util.js")(__filename, async);
class DeployManager {
constructor(options) {
constructor(embark, options) {
const self = this;
this.config = options.config;
this.logger = options.logger;
this.config = embark.config;
this.logger = embark.logger;
this.blockchainConfig = this.config.blockchainConfig;
this.events = options.events;
this.events = embark.events;
this.plugins = options.plugins;
this.blockchain = options.blockchain;
this.gasLimit = false;

View File

@ -218,11 +218,12 @@ class Engine {
const DeployManager = require('../contracts/deploy_manager.js');
this.deployManager = new DeployManager({
blockchain: this.blockchain,
config: this.config,
logger: this.logger,
events: this.events
}, {
blockchain: this.blockchain,
plugins: this.plugins,
events: this.events,
onlyCompile: options.onlyCompile
});