WalletConnect / walletconnect-monorepo

WalletConnect Monorepo
Apache License 2.0
1.26k stars 626 forks source link

Failing to receive signature from Gnosis Safe multisig app #4464

Open eugenPtr opened 2 months ago

eugenPtr commented 2 months ago

Describe the bug

I am building an app that needs to be able to receive messages signed with Gnosis Safe While this worked well with Metamask, I am getting a Request expired. Please try again. error when I do it through Gnosis Safe. I have tested this on Sepolia, signing the message right away and having the tx confirmed by Safe in under 1 minute. The app keeps waiting to receive the signature from WC until the request times out.

To fetch the signature I am using signMessageAsync from wagmi's useSignMessage hook.

SDK Version (if relevant)

To Reproduce Steps to reproduce the behavior:

  1. Login through WC with Safe Wallet on Desktop
  2. User clicks a button requesting them to Sign a message
  3. User is redirected to the Safe wallet page in the browser
  4. User signs tx which gets confirmed less than a minute after
  5. User then goes to the app when a loader is spinning until the signature is received
  6. After a few minutes the browser console logs the error: Request expired. Please try again

Expected behavior The signature is received after a while, before timing out

linear[bot] commented 2 months ago

CR-12 Failing to receive signature from Gnosis Safe multisig app

ganchoradkov commented 2 months ago

hey @eugenPtr session requests have default expiry of 5 minutes. Is it taking longer for you to sign?

eugenPtr commented 2 months ago

hey @ganchoradkov, thanks for picking this up. It's taking under a minute to sign and see the transaction confirmed.

eugenPtr commented 2 months ago

@ganchoradkov any idea what the issue could be here?