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

WalletConnect - Pending TODOs and known issues #60

Open
5 of 9 tasks
Pabl0cks opened this issue Jun 4, 2024 · 3 comments
Open
5 of 9 tasks

WalletConnect - Pending TODOs and known issues #60

Pabl0cks opened this issue Jun 4, 2024 · 3 comments
Assignees

Comments

@Pabl0cks
Copy link
Member

Pabl0cks commented Jun 4, 2024

Creating this to continue iterating on WalletConnect integration. Moving pending TODOs and issues from #46.

We can document new issues here too, and iterate with different PRs until is polished.

Features

  • Save session information on LocalStorage to allow it to keep it working after a reload
  • Maybe add a setting to auto-confirm transactions and signing
  • It would be nice to add more info to the WalletConnect drawer, when you are "Connecting to Dapp" and when you're checking "Connected Dapp"
  • In the future it may be nice to connect to more than 1 dapp at the same time. When everything is stable with 1 dapp.

Visual improvements

  • We could move the transaction confirm modal and switch network alerts to a bottom drawer with nice format.

Issues

  • When I disconnect from the dapp, and connect again, i keep getting "Wrong network" message. It also happens if I connect to a different Challenge, for example:
    • Connect to Chal 0, disconnect.
    • Connect to Chal 5, get "Wrong network" message > Change network to Sepolia in dapp > Disconnect
    • Connect to Chal 0, get the "Wrong network" message again.
  • If you close the WC modal in the dapp (the one that lets you copy the code), it says "Connected" when you click "Connect Dapp" in the burner, but it doesn't really connect.
  • When trying to performa swap in Uniswap on a different network than the burnerwallet network, it shows the confirm to change the network on burner several times.
  • [Can't reproduce] This happens to me the first time I use the WC feature after opening the browser, with Firefox.
    I open Challenge 0 and connect (OK). Then try to fire a Mint tx, but it says "Cannot access account". If I disconnect and connect again, it works fine, but if I close Firefox, and connect again, it says "Cannot access account" again.
@damianmarti
Copy link
Member

@Pabl0cks An update on the pending issues.

When I disconnect from the dapp, and connect again, i keep getting "Wrong network" message. It also happens if I connect to a different Challenge, for example:
Connect to Chal 0, disconnect.
Connect to Chal 5, get "Wrong network" message > Change network to Sepolia in dapp > Disconnect
Connect to Chal 0, get the "Wrong network" message again.

Not fixed yet, but I think it's related to a change network event, trying to have it fixed.

If you close the WC modal in the dapp (the one that lets you copy the code), it says "Connected" when you click "Connect Dapp" in the burner, but it doesn't really connect.

Not fixed yet too, but I saw that Metamask when scanning the official WalletConnect modal has the same behavior (tested on Chal 0 and Uniswap), so maybe it's something related to the WalletConnect web3modal...

@Pabl0cks
Copy link
Member Author

Thanks for the update Damu!

Regarding the change network event, while testing #68 I found that the multiple confirm of "Change network to.." was happening when trying to perform an action in Uniswap / Blur.

Will add it to the list just to make sure to verify when we fix the network issues.

@Pabl0cks
Copy link
Member Author

Regarding the change network event, while testing #68 I found that the multiple confirm of "Change network to.." was happening when trying to perform an action in Uniswap / Blur.

Will add it to the list just to make sure to verify when we fix the network issues.

Closed this sub-task, it is working now with #70 and #71 changes

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

2 participants