question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for contracts deployed via a factory?

See original GitHub issue

Hello! 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:

  1. 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
  2. It needs to find the input field 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 the input field.

Any way you could support the factories?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rkaliscommented, May 7, 2021

thanks to PR #61 from @hellwolf it’s now possible to provide the encoded constructor args as a force override with the --forceConstructorArgs option. 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.

1reaction
gorgoscommented, May 1, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found