mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
17 lines
430 B
TypeScript
17 lines
430 B
TypeScript
import { ethers } from "hardhat"
|
|
import { ExampleRewardManager } from "typechain-types"
|
|
|
|
const main = async (): Promise<any> => {
|
|
const contract: ExampleRewardManager = await ethers.deployContract("ExampleRewardManager")
|
|
|
|
await contract.waitForDeployment()
|
|
console.log(`Contract deployed to: ${contract.target}`)
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch(error => {
|
|
console.error(error)
|
|
process.exit(1)
|
|
})
|