mirror of
https://github.com/embarklabs/embark-solc.git
synced 2025-02-28 14:30:36 +00:00
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:
parent
0f102d9ae0
commit
8c1a8dfc0d
5
index.js
5
index.js
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user