mirror of https://github.com/embarklabs/embark.git
prepare to make it a module
This commit is contained in:
parent
be3a79ce39
commit
4ecb44e1c9
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue