Skip to content

Lesson 6: Contract Address Error? #6228

Closed Answered by SquilliamX
SquilliamX asked this question in Q&A
Discussion options

You must be logged in to vote

"The behavior you're witnessing is a quirk of the hardhat local development environment. When you run a script with the default hardhat network, it spins up an instance of the Ethereum Virtual Machine (EVM) locally for development and testing. The address 0x5FbDB2315678afecb367f032d93F642f64180aa3 is the default first address produced by Hardhat's local network. You're not the only one to see this address during local testing...
Ensure you're correctly specifying the --network sepolia flag when you run your deployment script. This flag tells Hardhat to use the Sepolia network configuration." -ChatGPT

After adding --network sepolia, my contract was deployed on Sepolia and produced a new co…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SquilliamX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant