import { run , ethers , upgrades } from "hardhat" ; const CONTRACT_ADDRESS = "Put the contract address here" ; async function main ( ) { const SimpleStorageUpgradeableV2 = await ethers . getContractFactory ( "SimpleStorageUpgradeableV2" ) ; const contract = await upgrades . upgradeProxy ( CONTRACT_ADDRESS , SimpleStorageUpgradeableV2 ) ; console . log ( "Contract Upgraded" ) ; } main ( ) . then ( ( ) => process . exit ( 0 ) ) . catch ( ( error ) => { console . error ( error ) ; process . exit ( 1 ) ; } ) ;