Files
evm/contracts/scripts/deployExampleDeployerList.ts
T
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
487 B
TypeScript

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