Files
evm/contracts/scripts/deployERC20NativeMinter.ts
Ceyhun OnurandGitHub 9b09e62625 Fix contract examples package json (#672)
* rename contract-examples to contracts & fix pack issue

* allow custom CMD to be run on blockchains for e2e tests

* move default hardhat test to utils

* fix comment

* add more comments

* change folder reference
2023-06-16 12:03:30 -04:00

21 lines
453 B
TypeScript

import {
Contract,
ContractFactory
} from "ethers"
import { ethers } from "hardhat"
const main = async (): Promise<any> => {
const Token: ContractFactory = await ethers.getContractFactory("ERC20NativeMinter")
const token: Contract = await Token.deploy()
await token.deployed()
console.log(`Token deployed to: ${token.address}`)
}
main()
.then(() => process.exit(0))
.catch(error => {
console.error(error)
process.exit(1)
})