Error: Contract not identified as NFT drop with Thirdweb

I’m getting an error from Thirdweb saying my contract is not an NFT drop. Check this example:

import { initContractInstance } from '@thirdweb-dev/react'

const DemoComponent = () => {
  const { tokenContract } = initContractInstance('YourContractAddress', 'nft-drop')
  return null
}

export default DemoComponent

How can I fix this?

hey, try to ensure your deployment option was set up as an nft drop. i had simlar issues and noticed i was using a wrong config. double-check your contract deploy settings and network config, cheers!

hey, im also running into a similar problem, kinda curious if its an issue with how the contract was added to thirdweb’s system. i noticed sometimes the contract deploy config doesn’t properly flag as an nft drop if the underlying code slightly differs. have you had a chance to try using a vanilla example before integrating your custom logic. also, im wonderin if there might be a version mismatch between the sdk you use and the contract type specified. what do you reckon might be another angle to check?

The error likely stems from a mismatch between the contract’s implementation and the NFT drop standard that Thirdweb expects. I ran into a similar situation and resolved it by verifying that my contract’s ABI fully complies with the NFT drop requirements as defined in the Thirdweb documentation. It was helpful to double-check the deployment process to confirm that the contract was registered as an NFT drop. Additionally, ensure that the correct network settings are used when initializing the instance. This approach helped me identify and rectify any underlying deployment inconsistencies.