Skip to content

Etherscan unable to verify Uniswap V2 clone contract #2894

Closed Answered by LanceAddison
LanceAddison asked this question in Q&A
Discussion options

You must be logged in to vote

Ok nevermind. I figured it out. 😅

I just added --via-ir to the end of the forge script command and it worked. I'm glad it worked but I have no idea why.

I've only completed up to foundry advanced so I'm not sure if this is covered in later courses but it would be nice if there was a course all about this nuanced stuff like etherscan, foundry cast, slither, invariant tests(they're hard). Just somthing that covers most of the other stuff that isn't contract dev specifically. I'm sure I missed even more that could be covered but I constantly feel like I am being hindered by other steps that are part of the process like verifying on etherscan. I have had some sort of problem with contract ver…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@LanceAddison
Comment options

Answer selected by LanceAddison
@EngrPips
Comment options

@LanceAddison
Comment options

@EngrPips
Comment options

Comment options

You must be logged in to vote
1 reply
@LanceAddison
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants