mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 22:34:24 +00:00
remove extra method
This commit is contained in:
parent
da84cfa769
commit
d8a1894803
@ -46,7 +46,7 @@ class Pipeline {
|
|||||||
},
|
},
|
||||||
function writeContracts(next) {
|
function writeContracts(next) {
|
||||||
async.each(Object.keys(contractsJSON), (contractName, eachCb) => {
|
async.each(Object.keys(contractsJSON), (contractName, eachCb) => {
|
||||||
self.buildContractJS(contractName, (err, contractCode) => {
|
self.events.request('code-generator:contract', contractName, (contractCode) => {
|
||||||
let filePath = fs.dappPath(".embark", contractName + '.js');
|
let filePath = fs.dappPath(".embark", contractName + '.js');
|
||||||
importsList["Embark/contracts/" + contractName] = filePath;
|
importsList["Embark/contracts/" + contractName] = filePath;
|
||||||
fs.writeFile(filePath, contractCode, eachCb);
|
fs.writeFile(filePath, contractCode, eachCb);
|
||||||
@ -188,14 +188,6 @@ class Pipeline {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
buildContractJS(contractName, callback) {
|
|
||||||
const self = this;
|
|
||||||
|
|
||||||
self.events.request('code-generator:contract', contractName, (code) => {
|
|
||||||
callback(null, code);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
buildWeb3JS(cb) {
|
buildWeb3JS(cb) {
|
||||||
const self = this;
|
const self = this;
|
||||||
async.waterfall([
|
async.waterfall([
|
||||||
|
Loading…
x
Reference in New Issue
Block a user