how to verify a contract which is deployed through another contract,using ERC1167 contract in hardhat #6183
Unanswered
soumalya340
asked this question in
Q&A
Replies: 1 comment
-
Actually, I'm not sure if this will work for your specific case, but in general, this is how you can verify a contract through Hardhat const { run } = require("hardhat");
const verify = async (contractAddress, args) => {
console.log("Verifying contract...");
try {
await run("verify:verify", {
address: contractAddress,
constructorArguments: args,
});
} catch (e) {
if (e.message.toLowerCase().includes("already verified")) {
console.log("Already Verified!");
} else {
console.log(e);
}
}
};
module.exports = { verify }; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can anyone please tell me if deployed a contract through ERC-1167: Minimal Proxy Contract how to verify contract through hardhat
Beta Was this translation helpful? Give feedback.
All reactions