How to verify contracts deployed to telos network using hardhat #429
-
I deployed contracts to telos testnet and tried to verify them via hardhat. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
You do not need a key at all just use the hardhat deploy sourcify plugin
You may run into a "gateway timeout" error message, do not worry, the contract will still be verified If you got questions like this better to contact us directly on Telegram @ https://t.me/TelosEVMDevs |
Beta Was this translation helpful? Give feedback.
-
Nice! So verifying smart contracts using sourcify is working like a dream except for one case. |
Beta Was this translation helpful? Give feedback.
-
What do you mean by dynamically ? Are you using CREATE2 on chain ? See https://docs.sourcify.dev/docs/create2/ |
Beta Was this translation helpful? Give feedback.
-
Let me share detail code here.
Actually, I am doing deploying aave v2 contracts to telos testnet. |
Beta Was this translation helpful? Give feedback.
-
We will have creation information available with 1.5 RPCs which will be out pretty soon. |
Beta Was this translation helpful? Give feedback.
-
Thanks for letting me know that. https://testnet.snowtrace.io/address/0xCF5A519b6a7d758909a342DE7104923F1fC5B683 Here If you have any idea about this issue, Plz let me know anytime. That'd be much thankful. |
Beta Was this translation helpful? Give feedback.
-
Much appreciate your help! |
Beta Was this translation helpful? Give feedback.
You do not need a key at all just use the hardhat deploy sourcify plugin
npx hardhat --network testnet sourcify
You may run into a "gateway timeout" error message, do not worry, the contract will still be verified
You can make sure it is by running the command again, you should get this message back:
already verified: MyContract (0x2A3b40A59109a84ab82a0Ff1A3910bb595082e09), skipping.
If you got questions like this better to contact us directly on Telegram @ https://t.me/TelosEVMDevs
Also: https://docs.telos.net/evm/smart-contracts/hardhat_sourcify