This commit is contained in:
Iuri Matias 2017-12-14 15:27:19 -05:00
parent 1cb6581fde
commit 34cec58f32

View File

@ -53,7 +53,6 @@ class Pipeline {
if (request === utils.joinPath(fs.dappPath(), file.filename)) {
callback();
} else {
console.log("request " + request);
if (request.indexOf('Embark/contracts/') === 0) {
let contractName = request.split('/')[2];
let contractCode = self.buildContractJS(contractName);
@ -198,7 +197,6 @@ class Pipeline {
contractCode += "let " + contractName + " = new EmbarkJS.Contract(" + contractName + "JSONConfig);\n";
contractCode += "\n__embarkContext.execWhenReady(function() {\n";
contractCode += "\nconsole.log('ready to set provider');\n";
contractCode += "\n" + contractName + ".setProvider(web3.currentProvider);\n";
contractCode += "\n});\n";
@ -208,7 +206,6 @@ class Pipeline {
}
buildWeb3JS(cb) {
console.log("--> web3");
this.events.request('provider-code', function(providerCode) {
let code = "";
code += "\nimport Web3 from '" + utils.joinPath(fs.embarkPath("js/web3-1.0.min.js")) + "'\n";
@ -220,8 +217,6 @@ class Pipeline {
code += providerCode;
code += "\nglobal.__embarkContext = __mainContext.__loadManagerInstance;\n";
code += "\nconsole.log('web3');\n";
code += "\nconsole.log(web3);\n";
code += "\nwindow.web3 = web3;\n";
code += "\nexport default web3;\n";
let filePath = utils.joinPath(fs.dappPath(), ".embark", 'web3_instance.js');