Hi, I'm trying to deploy contracts on BSC testnet using Hardhat. I have specified the network configurations properly, but whenever I run the deploy script with "--network bsc", it deploys to the local Hardhat network instead of the specified network. It doesn't throw any errors, but it's still not deploying to the correct network.

Feb 19, 2023, 11:04 AM
Have you specified in the config?
Feb 19, 2023, 11:16 AM
Yeah, with uri, chainID and PK
Feb 19, 2023, 11:17 AM
Is it “defaultNetwork” specified?
I reformulate the question: what is the right cycle to upgrade an upgradeable contract?
I got:
1) Deploy the contract
2) Verify the contract
3) upgradeProxy with hardhat passing the following argument: new implementation, proxy address

Are any other things that am I missing ?
Uhm, I’ll try it. What are the steps to successfully upgrade a contract other than these ?
Feb 19, 2023, 3:43 PM

© 2024 Draquery.com All rights reserved.