Pretty print JSON for contract addresses
This makes it easier to read the file and a git diff is more useful
This commit is contained in:
parent
258c6729b6
commit
b6f34ac9a5
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user