mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
* add contract examples * Update contract-examples/contracts/ERC20NativeMinter.sol Co-authored-by: aaronbuchwald <[email protected]> * nit in readme * explicitly show decimals in contract * nits * refer example README * move warning to top * Update disclaimer * Remove assumes liability phrasing * move warning Co-authored-by: aaronbuchwald <[email protected]>
21 lines
487 B
TypeScript
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)
|
|
})
|