Contracts for Degen Domain Name Service
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.
 
degen-contracts/scripts/nft/anon/deployMetadata.js

29 lines
1.1 KiB

// npx hardhat run scripts/nft/angel/deployMetadata.js --network polygonMumbai
// TODO after deployment:
// 1) Deploy minter contract and add minter address to the metadata contract through changeMinter() function
// 2) Add metadata address to the TLD contract through the changeMetadataAddress() function
const contractNameFactory = "DegenAnonMetadata";
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);
});