From b6f34ac9a5795fdc0960acd3b330ac3cdb3ecabd Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Wed, 27 Mar 2019 21:58:19 +0100 Subject: [PATCH] Pretty print JSON for contract addresses This makes it easier to read the file and a git diff is more useful --- scripts/helpers/file_inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/helpers/file_inject.js b/scripts/helpers/file_inject.js index abc0c80..65362af 100644 --- a/scripts/helpers/file_inject.js +++ b/scripts/helpers/file_inject.js @@ -4,5 +4,5 @@ const fs = require('fs'); module.exports = function (file, networkId, data) { let content = JSON.parse(fs.readFileSync(file)); content[networkId] = data; - fs.writeFileSync(file, JSON.stringify(content)); + fs.writeFileSync(file, JSON.stringify(content, null, 2)); }