Closed techybolek closed 1 year ago
Solved. I was missing a require for hardhat-waffle:
require("@nomiclabs/hardhat-waffle")
Thanks! Do we need to update the repo?
Please I'm having a similar issue while deploying and can't seem to locate the issue, our deploy raffle file also seems to be same...
yarn hardhat deploy yarn run v1.22.19 $ /home/uba/hardhat-smartcontract-lottery/node_modules/.bin/hardhat deploy Nothing to compile An unexpected error occurred:
Error: ERROR processing skip func of /home/uba/hardhat-smartcontract-lottery/deploy/01-deploy-raffle.js:
TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')
at Object.
Can you:
Can you:
- Make this a discusson on the full repo? https://github.com/smartcontractkit/full-blockchain-solidity-course-js/
- Follow this section for formatting questions? https://www.youtube.com/watch?t=19846&v=gyMwXuJrbJQ&feature=youtu.be
Thanks. Found my way around it.
This is what I'm getting when trying to deploy my raffle contract. It looks like I'm missing a package related to hardhat/ethers. However, I'm not sure what it would be, since I've copied package.json from Patrick's repo:
Here is my 01-deploy-raffle.js:
Here is my package.json: