-
I tried verifying and publishing the source code for SimpleStorage. i inputed the Verification details. including... here's my source code...
i set the optimisation to Although after a brief delay i got an error saying
it seems the byte code of the contract dosen't match the one they're looking for... i know the verification is optional but i still think i might want to do it cause i want to see the results against later. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Honestly, I haven't achieved any success with manual verification myself, and I have always just used Foundry verification feature to verify smart contracts I deployed while taking Cyfrin course |
Beta Was this translation helpful? Give feedback.
-
@Tarreef If you're using remix to deploy make sure to put the actual compiler version you used to compile your contract. I was able to verifiy the contract you've pasted just using correct compiler, no optimization. |
Beta Was this translation helpful? Give feedback.
Oh I see... so I guess you're in forge and using Alchemy as RPC URL provider??
when you run
forge build
is telling you what compiler has been usedforge build [⠊] Compiling... [⠔] Compiling 1 files with Solc 0.8.24 [⠒] Solc 0.8.24 finished in 40…