Support for contracts deployed via a factory?
See original GitHub issueHello! Thanks for your work on this! This is very exciting for us!
That said, we have a challenge because the contract we’d like to verify (this one for example) is deployed via another contract.
It looks like this causes 2 different issues:
- It needs an address inside of the
PublicLock.json. This is one is easy, I just manually updated the json file to add one of an existing deployed contract - It needs to find the
inputfield on the transaction which instantiated the contract. This one is trickier, because that transaction was not tiggered by me and since this is an “internal” transaction we do not get to access theinputfield.
Any way you could support the factories?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Cloning Solidity smart contracts using the factory pattern
This article will demonstrate practically how to deploy multiple instances of your smart contract the right way using the factory pattern.
Read more >Contract factories and clones - Solidity developer
How to deploy contracts as easily and cheaply as possible with advanced concepts.
Read more >How to Create a Smart Contract Factory in Solidity using ...
1. Hello reader! Today we are going to be leveling up your Solidity skills. We are going to walk you thr... 2. A...
Read more >Smart Contract Factories: How to create a contract ... - Medium
A Contract Factory is a design pattern that creates contracts based on a template. Users can introduce values into a field which are...
Read more >ContractFactory - Ethers.js
The Contract Factory sends a special type of transaction, an initcode transaction (i.e. the to field is null, and the data field is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

thanks to PR #61 from @hellwolf it’s now possible to provide the encoded constructor args as a force override with the
--forceConstructorArgsoption. I’ll leave this issue open though since we might want to update this in the future to allow unencoded args or to figure out some automated process.At least proxies are supported now by Etherscan: https://medium.com/etherscan-blog/and-finally-proxy-contract-support-on-etherscan-693e3da0714b.