The issue that has been happening is with add() function. To add the nft onto the marketplace first I need to apply the updateOperator() in cis2. And after that I’m adding the nft to marketplace. now the issue is that it’s giving me code -1 error. I’m attaching the screenshots for your reference:
I don’t see any obvious mistakes in the JSON, but it is hard to say, without knowing which contract you are using.
Are you using the contracts from https://github.com/chainorders/concordium-nft-tutorials/tree/main/cis2-market?
If so, which token contract are you using and did you change anything in them?
Yes that’s what I’m using and also I did not change anything in the code.