-
I am trying to deploy the smart contract lottery to the sepolia testnet but when I run the command I get this error. Not sure what it means because I have it in my folders. Heres my repo. https://github.com/alex81983/smart-contract-lottery On another note how do I push my repo without showing my .env? I put it in .gitignore and it still showed up on the repo. Error: Cannot find module '/html-fund-me-fcc/hardhat-smartcontract-lottery-fcc/deploy'
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
Which commands you used to deploy it? 1- The code is fine, I deployed the contract at 2- after putting |
Beta Was this translation helpful? Give feedback.
1- please make screenshot of
your MetaMask account or any wallet you are using (showing the balance), and your alchemy config
2- change the
verify
import, fromutils
nothelper-hardhat-config
.const { verify } = require("../helper-hardhat-config")
like this
const { verify } = require("../utils/verify")
3- and about
.env
so you have to delete your whole repo and recommit, repush it again (what I prefer) or delete
.env
file manually, but it will be still there cause GitHub tracking every thing.