mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
cleanup
This commit is contained in:
parent
1cb6581fde
commit
34cec58f32
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user