I am trying to develop my project using React, Ethers, and Hardhat. Whenever I run the below commands in order, the hardhat gives me the same address as previously deployed contracts. So weird! I might be wrong somewhere.
- First I start the node by: "npx hardhat node"
- Then in another terminal I run: "npx hardhat compile"
- Then this command on the same terminal as the last: "npx hardhat run scripts/deploy-script.js --network localhost"
This process always gives me the same address, although I may have made some changes to the scripts. It is expected to give a new address for every newly deployed contract, all of the addresses are the same.
Does anybody know where I am wrong?
The contract address is always the same as past