blocknative / web3-onboard

Client library to onboard users to web3 apps
https://onboard.blocknative.com/
MIT License
813 stars 474 forks source link

Message signing for fox wallet #2226

Open kr-keshav-kk opened 1 month ago

kr-keshav-kk commented 1 month ago

Current Behavior

Message signing failing for fox wallet

Expected Behavior

connecting wallet works fine. But on calling sign message function it fails.

Steps To Reproduce

  1. install foxwallet android app
  2. select buy
  3. select sell in the new opened window
  4. in the 'you receive' select inr
  5. select onramp in payment channels

What package is effected by this issue?

@web3-onboard/core

Is this a build or a runtime issue?

Runtime

Package Version

"@web3-onboard/core": "^2.21.6"

Node Version

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

Anything else?

No response

Sanity Check

Adamj1232 commented 3 weeks ago

This sounds like an issue with Fox wallet - can you provide me with a code example that I can look into?

kr-keshav-kk commented 2 weeks ago

I can provide these lines of code, which is for signing the message. It works fine for other wallets but for trust it just doesn't work.

const signer = await get(walletStatus)?.signer; if (!signer) { throw new Error('Signer is not available'); } const signedMsg = await signer.signMessage(authData?.messsageToSign);

authData.signedMessage = signedMsg;