From 90adaab52397b3d583bd1b4f5edd5412bea94376 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 26 Feb 2019 12:35:59 +0000 Subject: [PATCH] fix(solidity): make original really original --- packages/embark/src/lib/modules/solidity/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/embark/src/lib/modules/solidity/index.js b/packages/embark/src/lib/modules/solidity/index.js index b200d2c1b..e830044ac 100644 --- a/packages/embark/src/lib/modules/solidity/index.js +++ b/packages/embark/src/lib/modules/solidity/index.js @@ -1,5 +1,6 @@ let async = require('../../utils/async_extend.js'); let SolcW = require('./solcW.js'); +const path = require('path'); class Solidity { @@ -144,7 +145,7 @@ class Solidity { compiled_object[className].abiDefinition = contract.abi; compiled_object[className].userdoc = contract.userdoc; compiled_object[className].filename = filename; - compiled_object[className].originalFilename = originalFilepaths[filename]; + compiled_object[className].originalFilename = originalFilepaths[path.basename(filename)]; } }