Skip to content

Commit

Permalink
fix: ensure CLI replaces path separator on Windows platforms correctly
Browse files Browse the repository at this point in the history
Fixes #365
  • Loading branch information
0x-r4bbit committed Jun 10, 2019
1 parent 366c91e commit 234223a
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 234223a

Please sign in to comment.