@0x/contracts-exchange-libs: Make generate-exchange-selectors terminate file with a newline.

This commit is contained in:
Lawrence Forman 2019-05-17 02:41:48 -04:00 committed by Amir Bandeali
parent 7c0f075d1f
commit 14167412e0
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ const VISIBILITY = 'internal';
); );
const contractDefinition = defineContract(contractName, functionsByName); const contractDefinition = defineContract(contractName, functionsByName);
const preamble = extractOutputFilePreamble(outputFile); const preamble = extractOutputFilePreamble(outputFile);
const outputFileContents = `${preamble}${contractDefinition}`; const outputFileContents = `${preamble}${contractDefinition}${LINEBREAK}`;
fs.writeFileSync(outputFile, outputFileContents); fs.writeFileSync(outputFile, outputFileContents);
console.log(`Wrote exchange selectors to "${path.resolve(outputFile)}."`); console.log(`Wrote exchange selectors to "${path.resolve(outputFile)}."`);
})(); })();