Skip to content

Commit

Permalink
lint-ignore console.log & web3
Browse files Browse the repository at this point in the history
  • Loading branch information
kangarang authored and skmgoldin committed Aug 30, 2018
1 parent 4008319 commit fbeaf88
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions scripts/deploy_proxies.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global artifacts network */
/* global artifacts web3 */
const fs = require('fs');

const RegistryFactory = artifacts.require('RegistryFactory.sol');
Expand All @@ -8,15 +8,20 @@ const paramConfig = config.paramDefaults;

module.exports = (done) => {
async function deployProxies(networkID) {
const registryFactoryAddress = (
networkID === '1' ? '0xcc0df91b86795f21c3d43dbeb3ede0dfcf8dccaf' // mainnet
: networkID === '4' ? '0x822415a1e4d0d7f99425d794a817d9b823bdcd0c' // rinkeby
: RegistryFactory.address // development
);
let registryFactoryAddress;
if (networkID === '1') {
registryFactoryAddress = '0xcc0df91b86795f21c3d43dbeb3ede0dfcf8dccaf'; // mainnet
} else if (networkID === '4') {
registryFactoryAddress = '0x822415a1e4d0d7f99425d794a817d9b823bdcd0c'; // rinkeby
} else {
registryFactoryAddress = RegistryFactory.address; // development
}

/* eslint-disable no-console */
console.log(`RegistryFactory: ${registryFactoryAddress}`);
console.log('');
console.log('Deploying proxy contracts...');
/* eslint-enable no-console */

const registryFactory = await RegistryFactory.at(registryFactoryAddress);
const registryReceipt = await registryFactory.newRegistryWithToken(
Expand Down Expand Up @@ -48,14 +53,16 @@ module.exports = (done) => {
registry,
} = registryReceipt.logs[0].args;

/* eslint-disable no-console */
console.log('');
console.log(`Proxy contracts successfully migrated to network_id: ${networkID}`)
console.log(`Proxy contracts successfully migrated to network_id: ${networkID}`);
console.log('');
console.log(`${config.token.name}: ${token}`);
console.log(`PLCRVoting: ${plcr}`);
console.log(`Parameterizer: ${parameterizer}`);
console.log(`Registry: ${registry}`);
console.log('');
/* eslint-enable no-console */

return true;
}
Expand All @@ -67,4 +74,4 @@ module.exports = (done) => {
}
return deployProxies(network).then(() => done());
});
}
};

0 comments on commit fbeaf88

Please sign in to comment.