You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
847 B
26 lines
847 B
// npx hardhat run scripts/nft/angel/deployWhitelist.js --network xdai
|
|
|
|
const contractNameFactory = "DegenAnonWhitelist";
|
|
|
|
async function main() {
|
|
const [deployer] = await ethers.getSigners();
|
|
|
|
console.log("Deploying contracts with the account:", deployer.address);
|
|
console.log("Account balance:", (await deployer.getBalance()).toString());
|
|
|
|
// deploy contract
|
|
const contract = await ethers.getContractFactory(contractNameFactory);
|
|
const instance = await contract.deploy();
|
|
|
|
console.log("Contract address:", instance.address);
|
|
|
|
console.log("Wait a minute and then run this command to verify contract on the block explorer:");
|
|
console.log("npx hardhat verify --network " + network.name + " " + instance.address);
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
}); |