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

npm run deploy - Error: incorrect number of arguments #95

Closed
jeffprestes opened this issue Apr 4, 2020 · 3 comments · Fixed by #97
Closed

npm run deploy - Error: incorrect number of arguments #95

jeffprestes opened this issue Apr 4, 2020 · 3 comments · Fixed by #97

Comments

@jeffprestes
Copy link

jeffprestes commented Apr 4, 2020

Expected Behavior

Assigned the deployer as the manager for OrgRegistry. TxHash: 0x1689ac60fba5c25b5559e0fbca066c4063a433dec552adc9208977e161f05852

Actual Behavior

Patiently waiting 10 seconds for ganache container to init ...
Checking for ganache ...
(node:9) UnhandledPromiseRejectionWarning: Error: incorrect number of arguments
at Contract.assignManager (/app/node_modules/ethers/contract.js:130:19)
at Object.assignManager (/app/src/utils/organization.js:29:39)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async assignManager (/app/src/deploy.js:39:31)
at async main (/app/src/deploy.js:115:3)

Steps to Reproduce the Problem

  1. Follow setup instructions until step 6

Specifications

  • Version: latest
  • Platform: MacOs 10.15.4
  • Subsystem: node version v11.15.0
@bitwiseguy
Copy link
Collaborator

@jeffprestes I have not seen this error before. Are you using the latest code from the master branch and have you customized it in any way? Here are a few things to consider that could help solve the issue:

  1. Clean out the blockchain data by removing that docker volume:
    docker volume rm radish34_chaindata
  2. Rebuild the deploy container to ensure it is not broken:
    docker-compose build deploy
  3. If you see the same error again, can you share the logs from the ganache container?
    docker logs ganache

@jeffprestes
Copy link
Author

Error persists. Looks like ganache container is not loading:

$ docker logs ganache
Error: No such container: ganache

Is there a way to start ganache container manually?
Also, use GETH instead of Ganache would be safe, wouldn't be?

@skarred14
Copy link
Collaborator

@jeffprestes good catch! thanks. Recent merge from #90 seemed to have caused this issue. Take a look at #97 which should fix this bug

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

Successfully merging a pull request may close this issue.

3 participants