mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
* 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
21 lines
453 B
TypeScript
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)
|
|
})
|