nft-gallery icon indicating copy to clipboard operation
nft-gallery copied to clipboard

Balance on account not loading properly

Open petersopko opened this issue 2 years ago • 9 comments

~Trying to burn NFT, my balance shows me zero on both Transfer / item detail, didn't catch that in screenshot, after refresh there's a balance, but still won't let me burn because apparently, balance 0.~

When the balance reappears after refresh, I can burn/buy/perform transaction now thanks to:

  • #3396

The issue with balance initially loading with 0 is still here on deploy from #3396 or on beta.

image

Only thing I can get from console is this image

petersopko avatar Jul 09 '22 15:07 petersopko

👋

Jarsen136 avatar Jul 09 '22 15:07 Jarsen136

ASSIGNED - @Jarsen136 🔒 LOCKED -> Monday, July 11th 2022, 03:50:09 UTC -> 36 hours

kodabot avatar Jul 09 '22 15:07 kodabot

adding this here image

probably same bug as this one, but showing up differently:

  • https://github.com/kodadot/nft-gallery/issues/3364

petersopko avatar Jul 10 '22 10:07 petersopko

copying my comment from #3446 to have this in one place:

I can reproduce the bug by opening multiple new incognito windows at, for example https://beta.kodadot.xyz/bsx/gallery/1965300869-4?page=1

What happens there is that sometimes I log in with wallet and I see balance 0 (as described in #3364). Sometimes the balance is 0 with KSM behind it and wallet in navbar shows KSM address. Sometimes I hit refresh and the wallet switches to BSX, I load balance and I end up with what @yangwao reported here, i.e. I have balance but I can't submit buy or make offer (not enough funds). I'd like to continue tracking this in #3395 to avoid having this scattered in multiple places image

petersopko avatar Jul 16 '22 07:07 petersopko

just produced this again

image

petersopko avatar Jul 16 '22 08:07 petersopko

ASSIGNMENT EXPIRED - @Jarsen136 has been unassigned.

kodabot avatar Jul 17 '22 08:07 kodabot

I can reproduce the bug by opening multiple new incognito windows at, for example beta.kodadot.xyz/bsx/gallery/1965300869-4?page=1

Related with due race conditions happening while fetching data from on-chain

  • #3364

yangwao avatar Jul 18 '22 07:07 yangwao

Is this still happening?

yangwao avatar Jul 29 '22 11:07 yangwao

This would happens after you switched chain, and refresh browser would update balance.

If you KUSAMA -> BSX, you balance would be KSM, if BSX -> KSM the balance would be BSX.

KngZhi avatar Jul 29 '22 17:07 KngZhi

There were recently some issues related to this, but after testing this multiple times I can't reproduce. Balance seem to be loading properly even when switching vigorously between chains.

Idk why or how did this get fixed, but I assume it's some api magic.

Good job 👍🏻 !

petersopko avatar Sep 30 '22 06:09 petersopko

On Beta this happen to me: BSX Screenshot 2022-09-30 at 08-35-06 KodaDot - Kusama NFT Market Explorer

SNEK Screenshot 2022-09-30 at 08-30-14 Fancy cat KodaDot - Kusama NFT Market Explorer

Is it normal we KSM instead of BSX?

roiLeo avatar Sep 30 '22 06:09 roiLeo