Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
0xmovses opened this issue Jul 24, 2021 · 0 comments

Comments

@0xmovses
Copy link

0xmovses commented Jul 24, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant