MolochVentures / moloch

👹 Moloch whose mind is pure machinery! Moloch whose blood is running money!
MIT License
673 stars 264 forks source link

Error: Invalid number of parameters for "approvedTokens". Got 0 expected 1! #107

Open 0xmovses opened 3 years ago

0xmovses commented 3 years ago
Error: Invalid number of parameters for "approvedTokens". Got 0 expected 1!
    at getApprovedToken (/Users/richardmelkonian/0x-movie/moloch/scripts/utils.js:47:37)

I get this error when trying to deploy the pool. My deployment params :

module.exports.SUMMONER = '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'
module.exports.TOKEN = ['0x6b175474e89094c44da98b954eedeac495271d0f', '0xdac17f958d2ee523a2206206994597c13d831ec7']
module.exports.PERIOD_DURATION_IN_SECONDS = 17280
module.exports.VOTING_DURATON_IN_PERIODS = 35
module.exports.GRACE_DURATON_IN_PERIODS = 35
module.exports.PROPOSAL_DEPOSIT = '100000000000000000' // Large numbers should be string or big numbers
module.exports.DILUTION_BOUND = 3
module.exports.PROCESSING_REWARD = '10000000000'

Not sure what could be causing this. Seems as if the deployment params are not setting the contract constructor?