mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-18 16:46:38 +00:00
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);
|
//require("../utils/debug_util.js")(__filename, async);
|
||||||
|
|
||||||
class DeployManager {
|
class DeployManager {
|
||||||
constructor(options) {
|
constructor(embark, options) {
|
||||||
const self = this;
|
const self = this;
|
||||||
this.config = options.config;
|
this.config = embark.config;
|
||||||
this.logger = options.logger;
|
this.logger = embark.logger;
|
||||||
this.blockchainConfig = this.config.blockchainConfig;
|
this.blockchainConfig = this.config.blockchainConfig;
|
||||||
|
|
||||||
this.events = options.events;
|
this.events = embark.events;
|
||||||
this.plugins = options.plugins;
|
this.plugins = options.plugins;
|
||||||
this.blockchain = options.blockchain;
|
this.blockchain = options.blockchain;
|
||||||
this.gasLimit = false;
|
this.gasLimit = false;
|
||||||
|
@ -218,11 +218,12 @@ class Engine {
|
|||||||
|
|
||||||
const DeployManager = require('../contracts/deploy_manager.js');
|
const DeployManager = require('../contracts/deploy_manager.js');
|
||||||
this.deployManager = new DeployManager({
|
this.deployManager = new DeployManager({
|
||||||
blockchain: this.blockchain,
|
|
||||||
config: this.config,
|
config: this.config,
|
||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
|
events: this.events
|
||||||
|
}, {
|
||||||
|
blockchain: this.blockchain,
|
||||||
plugins: this.plugins,
|
plugins: this.plugins,
|
||||||
events: this.events,
|
|
||||||
onlyCompile: options.onlyCompile
|
onlyCompile: options.onlyCompile
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user