Skip to content
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

Wallet Connect not working #41

Open
mihaic195 opened this issue Oct 9, 2024 · 0 comments
Open

Wallet Connect not working #41

mihaic195 opened this issue Oct 9, 2024 · 0 comments

Comments

@mihaic195
Copy link

mihaic195 commented Oct 9, 2024

I successfully connected to a Dapp using Wallet Connect through Fireblocks console.
Nothing happens on the Fireblocks/Wallet Connect side when I try to submit a transaction.
The same transaction works just fine using Freighter Wallet.

I can see that upon submission, an attestation request is made to WC, for which I get a plaintext OK response.

This is an example:

Request URL:
https://verify.walletconnect.com/attestation
Request Method:
POST
Status Code:
200 OK
Remote Address:
[2606:4700::6812:1a2e]:443
Referrer Policy:
strict-origin-when-cross-origin
Request Payload:
{"attestationId":"xxxxx","origin":"http://localhost:3000"}
Response:
OK

Testing on an EVM chain, the WC verification endpoint has different parameters and returns a different application/JSON response, which triggers the transaction to be signed on the WC/Fireblocks side. It works just fine in this case.

This is what the request looks like in this case:

Request URL:
https://verify.walletconnect.org/v2/attestation?projectId=yyyyyy
Request Method:
POST
Status Code:
200 OK
Remote Address:
[2606:4700::6812:14fa]:443
Referrer Policy:
strict-origin-when-cross-origin
access-control-allow-origin:
*
cf-ray:
8cfd7e88b8905b30-VIE
content-encoding:
br
content-type:
application/json; charset=UTF-8
date:
Wed, 09 Oct 2024 09:55:18 GMT
server:
cloudflare
vary:
Accept-Encoding
Request Payload:
{"id":"xxxxx","decryptedId":"zzzzz"}
Response:
{
    "srcdoc": "<script>window.parent.postMessage(JSON.stringify({type:\"verify_attestation\",attestation:\"<RETURNS HERE AN ENCODED JWT TOKEN>\"}),\"*\")</script>"
}

I'm assuming that in the case of Stellar, nothing happens because something is not right with the attestation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant