fix(@embark-solc): Fix unknown key “path” error

Compilation error `Unknown key “path”` was present when using Solidity 0.5.x. This PR removes the path property from the compilation sources as it is not needed.
This commit is contained in:
emizzle 2019-03-15 18:05:03 +11:00 committed by Jonathan Rainville
parent 0f102d9ae0
commit 8c1a8dfc0d
2 changed files with 1 additions and 7 deletions

View File

@ -4,11 +4,6 @@ const semver = require('semver');
module.exports = (embark) => {
if (embark.config.embarkConfig.versions.solc) {
const versionPromise = new Promise(function(resolve, reject) {
// Check solc version
});
embark.registerCompiler('.sol', (contractFiles, options, cb) => {
if (!contractFiles || !contractFiles.length) {
return cb();

View File

@ -112,8 +112,7 @@ function compileSolc(embark, contractFiles, contractDirectories, options, callba
});
compilationSettings.sources[file.path] = {
content: content.replace(/\r\n/g, '\n'),
path: file.path
content: content.replace(/\r\n/g, '\n')
};
eachCb();