Unable to verify ERC721 contract on Etherscan

Error! Unable to generate Contract ByteCode and ABI (General Exception, unable to get compiled [bytecode])

myc:486:42: ParserError: Expected ‘’ but got ‘{’
(bool success, ) = recipient.call{ value: amount }("")

1 Like

Hi @junaid2012,

Welcome to the community :wave:

I recommend using Hardhat or Truffle to verify: Verify smart contract inheriting from OpenZeppelin Contracts

If you have issues, you can post your Solidity code, address, network, whether optimization was enabled and any parameters used and I can try to help verify.

Thanks a lot. It worked.

1 Like

Hi @junaid2012,

Great to hear.

Out of interest, what are you building?

I’ve been exploring ERC721 and ERC1155 for building NFT marketplace.

1 Like

Hi @junaid2012,

Nice. I only have experience with OpenSea so far and mostly for displaying my NFTs rather than much trading.

Yes, But i’m working on a product which will facilitate both features

1 Like

Hi @junaid2012,

Would like to see what you create when you have something that you can share with the community.