-
Notifications
You must be signed in to change notification settings - Fork 701
Description
Describe the bug
On a desktop app, when connecting using the qr code method with the mobile app, the dapp is connected to the mobile wallet, but unable to sign any messages using the provider's getSigner function.
Steps
Use this repo for reproduction: https://github.com/wa0x6e/coinbase-wallet-test
All the interesting code it in https://github.com/wa0x6e/coinbase-wallet-test/blob/main/src/App.vue
- click on connect
- in the modal, click on 'sign in or connect wallet'
- choose 'mobile app'
- Scan the qr code with your mobile wallet
- you should be connected
- in the dapp, click on 'sign transaction'
- it should ask to confirm the transaction on the phone
- go to your phone mobile wallet
- it shows the following message
Expected behavior
expectation is to ask the user to sign the message.
Note that it works without issues when:
- connecting via passkey
- connecting via chrome extension
- opening and connecting the dapp in the mobile wallet internal browser
Version
4.3.0
Additional info
the shipped version is not working as-is, it's throwing the error 'Buffer is not defined'.
Buffer is not available on the browser, and need to be polyfilled.
I am guessing that the issue may come from the code using the buffer, since all other scenario work without Buffer.
Desktop
No response
Smartphone
No response