ChainSafe / web3.unity

🕹 Unity SDK for building games that interact with blockchains.
GNU Lesser General Public License v3.0
925 stars 237 forks source link

Loading spinner doesn't disappear after signing a transaction with Reown #1201

Open juans-chainsafe opened 1 month ago

juans-chainsafe commented 1 month ago

Describe the bug In mobile, after you connect Metamask and you click a sample that requires to sign a transaction, you get redirected to Metamask, sign the transaction, go back to the Unity app and the loading spinner is there forever, even when the transaction finishes. And it also happens with simple things like Sign Message sample

Steps Steps to reproduce the behavior:

  1. Build in iOS
  2. Login with [Reown] and connect [Metamask]
  3. Click on Mint sample or Sign Message sample
  4. Sign message/transaction
  5. Go back to Unity app

Expected behavior Spinner disappears after the transaction is confirmed, or if is the sign message sample, automatically when you switch back.

Console errors No errors in console, but also no output of the transaction/signed message

Screenshots/Video https://github.com/user-attachments/assets/1f563405-32b1-401c-bc5d-91e040bc3fb5

Mobile (please complete the following information):

kantagara commented 4 days ago

@juans-chainsafe is this still happening?

juans-chainsafe commented 4 days ago

@juans-chainsafe is this still happening?

yes, is still happening the same as the video attached in this ticket. I just retested it just in case

kantagara commented 4 days ago

@juans-chainsafe did you wait long enough? For me it does dissappear after a minute or two? It shouldn't be gone until the transaction is finished. Same thing is happening in the editor.

juans-chainsafe commented 3 days ago

@juans-chainsafe did you wait long enough? For me it does dissappear after a minute or two? It shouldn't be gone until the transaction is finished. Same thing is happening in the editor.

But which transaction? This is to switch the network if you are, for example, in eth mainnet when you connect the wallet