PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 182 forks source link

Error: Expected 2 Constructor Arguments, got 0 #156

Closed egutierrez130 closed 1 year ago

egutierrez130 commented 1 year ago

Hello, I am currently getting an error when trying to deploy during lesson 9. I am on hour 15:19:50.

This is the current error that I am getting

Nothing to compile Local network detected! Deploying mocks... An unexpected error occurred:

Error: ERROR processing /Users/edgargutierrez/hh-fcc/hardhat-smartcontract-lottery-fcc/deploy/00-deploy-mocks.js: Error: expected 2 constructor arguments, got 0

I have tried troubleshooting for a few hours now but have yet to find a solution. If possible, some help would be greatly appreciated. I will attach a link to my github repo, if that is the best way to view the code.

Edgars Smart Contract Lottery Repo

Thank you!

Also, I have already downgraded my ethers to version 5.7.2

egutierrez130 commented 1 year ago

UPDATE: I fixed the above, but now it is throwing a different error:

Error: ERROR processing /Users/edgargutierrez/hh-fcc/hardhat-smartcontract-lottery-fcc/deploy/01-deploy-raffle.js: ReferenceError: vrfCoordinatorV2Mock is not defined at Object.module.exports [as func] (/Users/edgargutierrez/hh-fcc/hardhat-smartcontract-lottery-fcc/deploy/01-deploy-raffle.js:15:9)

PatrickAlphaC commented 1 year ago

Awesome work!!

But, can you ask here: Can you:

  1. Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js/
  2. Follow this section for formatting questions? https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be
egutierrez130 commented 1 year ago

Awesome work!!

But, can you ask here: Can you:

  1. Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js/
  2. Follow this section for formatting questions? https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be

Thanks @PatrickAlphaC I will definitely add the question into the full repo. Thanks for linking the video for formatting questions.