Skip to content

Commit

Permalink
Merge pull request #367 from PascalPrecht/fix/cli-output
Browse files Browse the repository at this point in the history
fix: ensure CLI replaces path separator on Windows platforms correctly
  • Loading branch information
chriseth authored Jun 17, 2019
2 parents 366c91e + 234223a commit 55a274b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solcjs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function writeFile (file, content) {
for (var fileName in output.contracts) {
for (var contractName in output.contracts[fileName]) {
var contractFileName = fileName + ':' + contractName;
contractFileName = contractFileName.replace(/[:./]/g, '_');
contractFileName = contractFileName.replace(/[:./\\]/g, '_');

if (argv.bin) {
writeFile(contractFileName + '.bin', output.contracts[fileName][contractName].evm.bytecode.object);
Expand Down

0 comments on commit 55a274b

Please sign in to comment.