Lesson 6: Contract Address Error? #6228
-
Hi everyone, I have deployed my Hardhat-Simple-Storage to Sepolia but when I console.log the address the new contract that I am deploying, it prints out deploy.js:
my terminal:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
"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... After adding |
Beta Was this translation helpful? Give feedback.
"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…