From 6edb5f0402887c96f8f5e86b25482a7a0ba3d060 Mon Sep 17 00:00:00 2001 From: mkdir Date: Thu, 29 Jul 2021 14:16:25 -0500 Subject: [PATCH] fix buidlerArguments is not defined, issue #98 --- scripts/moloch-tasks.js | 2 +- scripts/pool-tasks.js | 2 +- scripts/utils.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/moloch-tasks.js b/scripts/moloch-tasks.js index d52e1f48..80f989e9 100644 --- a/scripts/moloch-tasks.js +++ b/scripts/moloch-tasks.js @@ -20,7 +20,7 @@ task('moloch-deploy', 'Deploys a new instance of the Moloch DAO') // Make sure everything is compiled await run('compile') - console.log('Deploying a new DAO to the network ' + buidlerArguments.network) + console.log('Deploying a new DAO to the network ' + hardhatArguments.network) console.log( 'Deployment parameters:\n', ' summoner:', deploymentParams.SUMMONER, '\n', diff --git a/scripts/pool-tasks.js b/scripts/pool-tasks.js index 1d323048..3b9001c4 100644 --- a/scripts/pool-tasks.js +++ b/scripts/pool-tasks.js @@ -28,7 +28,7 @@ task('pool-deploy', 'Deploys a new instance of the pool and activates it') return } - console.log('Deploying a new Pool to network ' + buidlerArguments.network) + console.log('Deploying a new Pool to network ' + hardhatArguments.network) console.log( 'Deployment parameters:\n', diff --git a/scripts/utils.js b/scripts/utils.js index ee3ec01e..5536f0a9 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -10,7 +10,7 @@ const BN = require('bn.js') async function getDeployedMoloch () { const molochAddress = getMolochAddress() if (!molochAddress) { - console.error(`Please, set the DAO's address in buidler.config.js's networks.${buidlerArguments.network}.deployedContracts.moloch`) + console.error(`Please, set the DAO's address in buidler.config.js's networks.${hardhatArguments.network}.deployedContracts.moloch`) return } @@ -25,7 +25,7 @@ async function getDeployedMoloch () { async function getDeployedPool () { const poolAddress = getPoolAddress() if (!poolAddress) { - console.error(`Please, set the Pool's address in buidler.config.js's networks.${buidlerArguments.network}.deployedContracts.pool`) + console.error(`Please, set the Pool's address in buidler.config.js's networks.${hardhatArguments.network}.deployedContracts.pool`) return } @@ -54,7 +54,7 @@ async function getApprovedToken () { * it hasn't been set. */ function getMolochAddress () { - return config.networks[buidlerArguments.network].deployedContracts.moloch + return config.networks[hardhatArguments.network].deployedContracts.moloch } /** @@ -62,7 +62,7 @@ function getMolochAddress () { * it hasn't been set. */ function getPoolAddress () { - return config.networks[buidlerArguments.network].deployedContracts.pool + return config.networks[hardhatArguments.network].deployedContracts.pool } async function giveAllowance (tokenContract, allowanceGiver, receiverContract, amount) {