import { run , ethers , upgrades } from "hardhat" ; async function main ( ) { const SimpleStorageUpgradeable = await ethers . getContractFactory ( "SimpleStorageUpgradeable" ) ; const contract = await upgrades . deployProxy ( SimpleStorageUpgradeable , [ 5 ] ) ; await contract . deployed ( ) ; console . log ( "SimpleStorageUpgradeable deployed to:" , contract . address ) ; } main ( ) . then ( ( ) => process . exit ( 0 ) ) . catch ( ( error ) => { console . error ( error ) ; process . exit ( 1 ) ; } ) ;