HashLips / solidity_smart_contracts

A list of smart contracts coded in solidity
MIT License
599 stars 491 forks source link

Can't Verify contract.HELP!! #16

Open AndreasMouskos opened 3 years ago

AndreasMouskos commented 3 years ago

Hey man,

I have watched every single video you've created and i am really grateful for all the hard work you put into them.

However, I forgot one crucial step to copy the ABI after deploy and I have already paid and minted 10,000 NFT on opensea. Can you explain or help out how to verify the contract now that I DIDN'T copy that code to verify?

This is my contract address(it's on polygon chain): 0x8D2d21C575455ee74f4dB94097BA8873d1C68cEd

Please help me in a way that I will understand as I am no programmer. I remember in your video you mentioned that there is a way if you don't do it but I've watched everywhere and i don't understand how to do it. Please you are my last resort!

sultan-710 commented 2 years ago

Hey bro i had the same issue and i just fixed it. Go to > remix eth > plugin manager > Activate FLATTENER> Icoin appears on top of plugin manager > open and click on flat (your contract name.sol) > click Save (your contract name.sol)

after that go to ur polygon verification page put all the info like (ur contract address, version....) Now copy the code from your remix (yourcontraqct_flat.sol) and paste it on polygon you know the rest what im talking about :) then For new ABI u have to go to Solidity Compiler on remix eth> on bottom you see Contract> choose you contract e.g (mycontract_flat.sol) > copy the new ABI > go to https://abi.hashex.org/ > paste the ABI > press Parse> full your info > Copy the code downbelow on website> back to polygon > paste the code > HIT ENTER > Contract Source Code Verified 👍 . I hope u can follow my steps, if u got stuck lemme know.