We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f90e62 commit 0eb462aCopy full SHA for 0eb462a
lib/pipeline/pipeline.js
@@ -97,10 +97,13 @@ class Pipeline {
97
98
buildContractJS(contractName) {
99
let contractJSON = fs.readFileSync('dist/contracts/' + contractName + '.json').toString();
100
+ let EmbarkJSLib = fs.readFileSync(fs.embarkPath("js/embark.js")).toString();
101
102
let contractCode = "";
103
contractCode += contractName + "JSONConfig = " + contractJSON + ";\n";
104
+ contractCode += EmbarkJSLib + "\n";
105
contractCode += contractName + " = new EmbarkJS.Contract(" + contractName + "JSONConfig);\n";
106
+ contractCode += "module.exports = " + contractName + ";\n";
107
108
return contractCode;
109
}
0 commit comments