Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleNFT_flat.sol contract does not verify on test etherscan #51

Open
Bawlache opened this issue Mar 13, 2022 · 1 comment
Open

SimpleNFT_flat.sol contract does not verify on test etherscan #51

Bawlache opened this issue Mar 13, 2022 · 1 comment

Comments

@Bawlache
Copy link

Im trying to verify a smart contract on etherscan test net and will be deploying on polygon when i can get it to verify.
Ive followed the Hashlips guide exactly (https://www.youtube.com/watch?v=fzH7Gjadmj0&t=5922s) but the copy button in remix does not copy the abi and byte code.

Im using SimpleNFT_flat.sol by the way

I carried on anyway but the contract will not verify. Brings up the unable to generate contract ByteCode and ABI. It then lists possible matches that it doesnt match with, despite on the list is a matching bytecode. https://ibb.co/Ss49CZ5

I deployed to testnet, clicked abi to copy it in the image, pasted that into hash ex, clicked parse and filled in the info at the bottom and tthen copied that into the constructor argument section.

https://ibb.co/9nZkXHh
https://ibb.co/hKjbgNW
https://ibb.co/Z2L9skt

Ive gone through every answer on here and google and nothing is fixing this.
Ive tried starting it from scratch, re deploying over and over again. Same issue. I just cant verify this thing. Everything is matching, compiler version, whether its optimised or not, the optimisation.

Would love some help on this.

@mammawrites
Copy link

I received a confirmed contract deployment but the transaction data showed "Transaction decoding is not available for chainId 137". I kept trying to deploy and searched for solutions as it kept erroring after that initial confirmation. Remix did not give me the contract address link so I assumed there was a problem. Then I went to polygonscan and found the contract had deployed properly and was able to verify it. Did you follow Hashlips instruction in the 'How to Create an NFT Collection - Ultimate Guide' video? Go to 1:57:45, there is detailed instruction on exactly how to verify, specifics on the Constructor Arguments ABI-Encoded section. Select end of code backwards to the last trailing 0. This is the section to paste into this field. Hope this is the same situation for you. Best of luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants