I have a āunable to reach code errorā on line 27
Items[newItemId] = Item(newItemId, msg.sender, uri);
Iām not sure why this stopped working all of a sudden because now when I mint any nftās they are left pending in the database.
I have a āunable to reach code errorā on line 27
Items[newItemId] = Item(newItemId, msg.sender, uri);
Iām not sure why this stopped working all of a sudden because now when I mint any nftās they are left pending in the database.
Usually they are left in pending state because moralis waits for block confirmations until it turns into minted NFTs.
Could you please share the code so that we can evaluate the issue.
Thanks.
Yea sorry about that it was omitted because I had the gist surrounded with script tags. The code is present now.
Would it be similar to the issue that these people are facing?
If yes, please provide your server url for us to check.
Ok thank you this is my url https://lnqpgqwyx5ch.moralis.io:2083/apps/moralisDashboard/browser/_EthAddress
Which network are you using to execute the mints ?
using ganache for execution
Yes, this is correct behaviour because the NFTs are kept under pending unless there are more than one block confirmation. And on ganache each block is created only after a transaction is made.
So, we wait for more than one block to confirm a NFT mint.
Hope this helps.
Thanks.
Thank you so much for the help malik, it was something stupid. I forgot to refresh the devchain proxy directly from the dashboard after piping the everything to ganache using frpc.
Thank you so much for taking the time out to help me.
Have yourself a great day!