-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to join game #135
Comments
Just found this and have not had the time yet to investigate. |
Console points to contract: |
Hhm, so the error message points at the serialization we use to persist bigints in the browser storage. It seems like the string representing the bigint is not parsed correctly and is being fed directly to the contract instead of a bigint. We override the I think we should try to pinpoint in which scenarios this happens. Clearly it doesn't happen if we don't mint and use users 0 and 1, right? The standard deployment script should mint decks to index 0 and index 1, so I'm already surprised you manage to mint a deck to index 1? Okay lmao, we never set the claimed flag here: https://github.com/0xFableOrg/0xFable/blob/master/packages/contracts/src/DeckAirdrop.sol — that shouldn't be causing this issue though, but worth trying anyway. Can you pinpoint the transaction in which this happens? Good debugging exercise in perspective :D |
Hey @ShantelPeters! |
Hey Shantel, we have a pretty good idea of how to fix this, but 0xFable's development is currently paused! |
Issue:
Player is unable to join a new game.
Build:
5080439
Steps to reproduce:
Expected:
Player 2 can join game of player 1.
Reality:
Modal displays the following error message:
"SyntaxError: Cannot convert #bigint.20826557750498812955920791981733214788339539821236692591183101691377953231916 to a BigInt"
The text was updated successfully, but these errors were encountered: