22 lines
571 B
JavaScript
22 lines
571 B
JavaScript
const { ethers } = require('hardhat');
|
|
require('@nomiclabs/hardhat-etherscan');
|
|
|
|
const networkName = hre.network.name;
|
|
const { address } = require(`../deployments/${networkName}/FleekERC721.json`);
|
|
require('@nomiclabs/hardhat-etherscan');
|
|
|
|
async function main() {
|
|
// Verify the contract after deploying
|
|
await hre.run('verify:verify', {
|
|
address: address,
|
|
constructorArguments: [],
|
|
});
|
|
}
|
|
// Call the main function and catch if there is any error
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error);
|
|
process.exit(1);
|
|
});
|