How to verify contract on cronos test net using hardhat

Hi, I am on developing smart contract on Cronos Test net using Hardhat.
Then, I found it's difficult to verify the contract on Cronos.

I have verified smart contract on other net (like ethereum, bsc and others), but can you help me how to verify smart contract on Cronos Testnet using Hardhat?
Thanks in advance.

Hey @TrustedDev_1325
check this out maybe can help
I saw that supports sourcify so you could use the hardhat plugin hardhat-deploy

1 Like

Thanks @FreezyEx
When I run this command npx hardhat --network testnet sourcify, I got this error.
Error HH303: Unrecognized task sourcify
How can I resolve this?

And if I use this, I need to link imported libraries.
These are libraries I used.

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

Since it is difficult to write all libraries I used in editor, it's optimal to use Hardhat to verify.
So please help me to verify using Hardhat.

Did you try from truffle yet?

No, I mainly use Hardhat for deploying and verifying contract.

You should try it, maybe it will help, you can referr to truffle guide for it.