Skip to content

Commit

Permalink
fix buidlerArguments is not defined, issue MolochVentures#98
Browse files Browse the repository at this point in the history
  • Loading branch information
metafraction committed Jul 29, 2021
1 parent 4e786db commit 6edb5f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/moloch-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion scripts/pool-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
8 changes: 4 additions & 4 deletions scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -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
}

Expand Down Expand Up @@ -54,15 +54,15 @@ async function getApprovedToken () {
* it hasn't been set.
*/
function getMolochAddress () {
return config.networks[buidlerArguments.network].deployedContracts.moloch
return config.networks[hardhatArguments.network].deployedContracts.moloch
}

/**
* Returns the address of the MolochPool as set in the config, or undefined if
* 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) {
Expand Down

0 comments on commit 6edb5f0

Please sign in to comment.