github.com/cgcardona/r-subnet-evm@v0.1.5/contracts/scripts/deployERC20NativeMinter.ts (about) 1 import { 2 Contract, 3 ContractFactory 4 } from "ethers" 5 import { ethers } from "hardhat" 6 7 const main = async (): Promise<any> => { 8 const Token: ContractFactory = await ethers.getContractFactory("ERC20NativeMinter") 9 const token: Contract = await Token.deploy() 10 11 await token.deployed() 12 console.log(`Token deployed to: ${token.address}`) 13 } 14 15 main() 16 .then(() => process.exit(0)) 17 .catch(error => { 18 console.error(error) 19 process.exit(1) 20 })