1

I use:

await hre.run("verify:verify", {
        address: CONTRACT.address,
        constructorArguments: [ARGUMENT]
    });

but sometimes it returns: Reason: Already Verified

I want to write if statement , but I don't know how to check if contract already verified or not.

For example:

if (!contract.alreadyVerified){
await hre.run("verify:verify", {
            address: CONTRACT.address,
            constructorArguments: [ARGUMENT]
        });
}

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.