fix(pipeline): fix contract magic imports

This commit is contained in:
Jonathan Rainville 2019-02-22 10:29:25 -05:00 committed by Iuri Matias
parent 0d72ebeda8
commit fc113e8b2d

View File

@ -353,7 +353,7 @@ class Pipeline {
if (err) {
return eachCb(err);
}
importsList["Embark/contracts/" + contract.className] = contractPath;
importsList["Embark/contracts/" + contract.className] = self.fs.dappPath(contractPath);
// add the contract to the exports list to support alternate import syntax
importsHelperFile.write(`"${contract.className}": require('./${contract.className}').default,\n`);