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
486 B
TypeScript
21 lines
486 B
TypeScript
import {
|
|
Contract,
|
|
ContractFactory
|
|
} from "ethers"
|
|
import { ethers } from "hardhat"
|
|
|
|
const main = async (): Promise<any> => {
|
|
const contractFactory: ContractFactory = await ethers.getContractFactory("ExampleTxAllowList")
|
|
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)
|
|
})
|