onflow / kitty-items

Kitty Items: CryptoKitties Sample App
https://kitty-items.onflow.org
Apache License 2.0
409 stars 214 forks source link

Newly minted items don't immediately show as ready to purchase #311

Open codingone21 opened 1 year ago

codingone21 commented 1 year ago

Describe the bug After minting successfully, the minted item doesn't exist in the testnet database (sqlite) and does not appear on the storefront. When rerunning after some time, this minted item appears in the database and the storefront. There seems to be a synchronization issue with the DB (web) and the blockchain events. This is related to events indexing issue we've had since the birth of this project

To Reproduce Steps to reproduce the behavior:

  1. Mint a new item
  2. You will see no buttons that indicate listing or purchasing
  3. Go to storefront. You won't see this newly minted item.
  4. Check the sqlite database (local). You won't see this item in your 'listings' table.

Expected behavior Minted item should appear on the storefront right away. Web and blockchain events should be synced.