mirror of
https://github.com/embarklabs/embark-solc.git
synced 2025-02-28 22:40:26 +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) => {
|
module.exports = (embark) => {
|
||||||
if (embark.config.embarkConfig.versions.solc) {
|
if (embark.config.embarkConfig.versions.solc) {
|
||||||
const versionPromise = new Promise(function(resolve, reject) {
|
|
||||||
// Check solc version
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
embark.registerCompiler('.sol', (contractFiles, options, cb) => {
|
embark.registerCompiler('.sol', (contractFiles, options, cb) => {
|
||||||
if (!contractFiles || !contractFiles.length) {
|
if (!contractFiles || !contractFiles.length) {
|
||||||
return cb();
|
return cb();
|
||||||
|
@ -112,8 +112,7 @@ function compileSolc(embark, contractFiles, contractDirectories, options, callba
|
|||||||
});
|
});
|
||||||
|
|
||||||
compilationSettings.sources[file.path] = {
|
compilationSettings.sources[file.path] = {
|
||||||
content: content.replace(/\r\n/g, '\n'),
|
content: content.replace(/\r\n/g, '\n')
|
||||||
path: file.path
|
|
||||||
};
|
};
|
||||||
|
|
||||||
eachCb();
|
eachCb();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user