Hi there,
Here is an old problem: how can a smart contract importing OZ contracts be verified easily on Etherscan?
I’ve found three approaches so far:
-
Verifying using Hardhat: Verify smart contract inheriting from OpenZeppelin Contracts. This is definitely working, but would require learning/using Hardhat, which can be an overhead.
-
Flattening contracts using a truffle-flatten tool, which somehow never worked on my machine.
-
Manually copy and paste importing contracts into one. This worked fine but it’s not too hard to imagine the amount of manual effort.
Wondering if the Etherscan team can integrate importing OZ contracts on Etherscan once for all. That would be so great to use OZ contracts down the road.
Thanks,