How to write the Typescript to deploy?

@skyge asked in Error verifying proxy with plugin @nomiclabs/hardhat-etherscan

how to write a script of the type of .ts to deploy, cause

const token = await upgrades.deployProxy(Token, ["Mock Token", "MT"], { initializer: 'initialize' });

will throw out an error:

error TS2304: Cannot find name 'upgrades'.

@skyge may be missing import { upgrades } from 'hardhat';.

1 Like

Hi @Skyge,

Did you get a chance to try deploying using Typescript?