nft-gallery
nft-gallery copied to clipboard
Balance on account not loading properly
~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.
Only thing I can get from console is this
👋
ASSIGNED - @Jarsen136 🔒 LOCKED -> Monday, July 11th 2022, 03:50:09 UTC -> 36 hours
adding this here
probably same bug as this one, but showing up differently:
- https://github.com/kodadot/nft-gallery/issues/3364
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
just produced this again
ASSIGNMENT EXPIRED - @Jarsen136 has been unassigned.
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
Is this still happening?
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.
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 👍🏻 !
On Beta this happen to me:
BSX
SNEK
Is it normal we KSM instead of BSX?