How-to verify contracts created with a factory.
I was on a dev call with Austin Thomas Griffith about a month ago. We talked about scaffold-eth and touched on verification of factory contracts. We thought it might be useful to write a post about this.
This tutorial will talk about the manual way of doing it. We will be using https://github.com/austintgriffith/scaffold-eth/commit/1e6dc9b80e746d88eda922a553f5248a35e2c265, so go ahead and clone the repo. Notice the commit; we must be on the same 📄 here.
Ensure you are on node v12.8.3, and run yarn install
in the root of the repo.
Paste this in into the packages/hardhat/contracts/YourContract.sol
Let’s create a factory contract that will deploy the above. Let’s put it in packages/hardhat/contracts/YourFactory.sol