mirror of https://github.com/embarklabs/embark.git
fix(embark/solidity): fix getting the original filename of contracts
This commit is contained in:
parent
aba4e0e059
commit
4d424c06b9
|
@ -145,7 +145,8 @@ class Solidity {
|
|||
compiled_object[className].abiDefinition = contract.abi;
|
||||
compiled_object[className].userdoc = contract.userdoc;
|
||||
compiled_object[className].filename = filename;
|
||||
compiled_object[className].originalFilename = originalFilepaths[path.basename(filename)];
|
||||
const normalized = path.normalize(filename);
|
||||
compiled_object[className].originalFilename = Object.values(originalFilepaths).find(ogFilePath => normalized.indexOf(ogFilePath) > -1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue