Initial commit: add .gitignore and README
This commit is contained in:
15
dapps/quorumToken/scripts/deploy_quorumtoken.ts
Normal file
15
dapps/quorumToken/scripts/deploy_quorumtoken.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { ethers } from "hardhat"
|
||||
|
||||
async function main() {
|
||||
const initialSupply = ethers.parseEther('10000.0')
|
||||
const QuorumToken = await ethers.getContractFactory("QuorumToken")
|
||||
const deploy = await QuorumToken.deploy(initialSupply)
|
||||
console.log("Contract deploy at: %s", await deploy.getAddress());
|
||||
}
|
||||
|
||||
// We recommend this pattern to be able to use async/await everywhere
|
||||
// and properly handle errors.
|
||||
main().catch((error) => {
|
||||
console.error(error)
|
||||
process.exitCode = 1
|
||||
})
|
||||
Reference in New Issue
Block a user