Capitalizing contract filename
This commit is contained in:
parent
695b2980e6
commit
60bb3b5b4a
|
@ -12,7 +12,7 @@ class ScaffoldingSolidity {
|
|||
}
|
||||
|
||||
_generateFile(contract, templateFilename, extension, data, overwrite){
|
||||
const filename = contract.className.toLowerCase() + '.' + extension;
|
||||
const filename = capitalize(contract.className.toLowerCase()) + '.' + extension;
|
||||
const filePath = './contracts/' + filename;
|
||||
if (!overwrite && fs.existsSync(filePath)){
|
||||
throw new Error("file '" + filePath + "' already exists");
|
||||
|
|
Loading…
Reference in New Issue