Last active
June 29, 2021 10:33
-
-
Save steadylearner/8ee74292d20be085a25aa85229a552a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We require the Hardhat Runtime Environment explicitly here. This is optional | |
// but useful for running the script in a standalone fashion through `node <script>`. | |
// | |
// When running the script with `hardhat run <script>` you'll find the Hardhat | |
// Runtime Environment's members available in the global scope. | |
const hre = require("hardhat"); | |
async function main() { | |
const [deployer] = await hre.ethers.getSigners(); | |
console.log( | |
"Deploying contracts with the account:", | |
deployer.address | |
); | |
const SCAM = await hre.ethers.getContractFactory("SCAM_Token"); | |
const scam = await SCAM.deploy(); | |
await scam.deployed(); | |
console.log("SCAM_Token deployed to:", scam.address); | |
} | |
// We recommend this pattern to be able to use async/await everywhere | |
// and properly handle errors. | |
main() | |
.then(() => process.exit(0)) | |
.catch(error => { | |
console.error(error); | |
process.exit(1); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment