We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39d6635 commit f6685dfCopy full SHA for f6685df
solcjs
@@ -106,12 +106,14 @@ function writeFile (file, content) {
106
}
107
108
for (var contractName in output.contracts) {
109
+ var contractFileName = contractName.replace(/[:./]/g, '_');
110
+
111
if (argv.bin) {
- writeFile(contractName + '.bin', output.contracts[contractName].bytecode);
112
+ writeFile(contractFileName + '.bin', output.contracts[contractName].bytecode);
113
114
115
if (argv.abi) {
- writeFile(contractName + '.abi', output.contracts[contractName].interface);
116
+ writeFile(contractFileName + '.abi', output.contracts[contractName].interface);
117
118
119
0 commit comments