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.
27 lines
1.0 KiB
27 lines
1.0 KiB
// Deploy forbidden contract & factory contract (you'll need to deploy metadata contract beforehand)
|
|
// after deployment, add factory address to the ForbiddenTlds whitelist and to the Resolver
|
|
// npx hardhat run scripts/factories/flexi/deployForbiddenTlds.js --network bsc
|
|
|
|
async function main() {
|
|
const contractNameForb = "DegenForbiddenTlds";
|
|
|
|
const [deployer] = await ethers.getSigners();
|
|
|
|
console.log("Deploying contracts with the account:", deployer.address);
|
|
console.log("Account balance:", (await deployer.getBalance()).toString());
|
|
|
|
const contractForb = await ethers.getContractFactory(contractNameForb);
|
|
const instanceForb = await contractForb.deploy();
|
|
|
|
console.log("ForbiddenTlds contract address:", instanceForb.address);
|
|
|
|
console.log("Wait a minute and then run this command to verify contracts on block explorer:");
|
|
console.log("npx hardhat verify --network " + network.name + " " + instanceForb.address);
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
}); |