[Contract Verification] Factory automatic verification #72
-
EnvironmentMainnet Issue Type
Contract AddressFactory Additional DetailsI have a contract factory which creates new contracts using their bytecode hash to create them. How to get those contracts created with the factory automatically verified? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 16 replies
-
A suggestion would be to have a machine monitor whenever the factory deploys a new contract and then programatically perform the verification. Not the neatest setup but I do not think you can upload a script to the explorer that would perform this step for you whenever the factory deploys a contract. As for standard functionality in the explorer, the team is exploring ways to support this in future once the verification functionality has been implemented to the app. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
Hi @nfts2me, It's been a long time, but I just wanted to share that now we have Etherscan support for the zkSync Era network; please find the link here, and you will be able to verify factory SC automatically there. |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
-
The problem with that explorer is that we use a contract factory.
And contracts are created using create2 from the bytecodehash.
So we cannot verify all of them individually as we are a permissionless
protocol.
…On Wed, 10 Apr 2024 at 02:48, bxpana ***@***.***> wrote:
Apologies for the delay here, catching up after being out sick. I'll
report back to the team and see what's up.
You're not able to verify using our explorer, https://explorer.zksync.io/
either correct?
—
Reply to this email directly, view it on GitHub
<#72 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2ENDR5R6PJB2GCZK32KNOLY4SD7RAVCNFSM6AAAAAA2UNQZ66VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TANRUHA3DO>
.
You are receiving this because you were mentioned.Message ID:
<zkSync-Community-Hub/zksync-developers/repo-discussions/72/comments/9064867
@github.com>
|
Beta Was this translation helpful? Give feedback.
So it looks like this is currently a known issue of not being able to verify contracts that have been deployed from another contract. It's something we have planned to implement in the future though. Is that a blocker for you guys right now?