@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

@ -147,4 +147,4 @@ contract LibExchangeSelectors {
// VERSION()
bytes4 constant internal VERSION_SELECTOR = 0xffa1ad74;
}
}

View File

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