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

[Bug]: App does not correctly switch accounts (IOTA EVM Toolkit) #46

Open
Phyloiota opened this issue Jun 3, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Phyloiota
Copy link

Bug description

I think the EVM Toolkit still has some stage quirks.
I wanted to test the "wrap" function.
I had previously connected a wallet with no IOTA Token, so I attempted to switch that account to one with IOTA. The flow here was already not optimal somehow—disconnecting the one account and the "connect Wallet" again leads to the "switch network" pop-up and asking me to switch from "IOTA EVM—IOTA EVM"—weird?
And it still always connects with the previous account, so I figured out I needed to disconnect the website in Metamask and connect the other account,
Okay, that worked.
Then I attempted to do a wrapping but got an error:
"Not enough Gas" or something like that, and it showed it still wants to use the previously connected account in the wrapping (0x5cbf0aa75c003b6c282fb4ab158c5e2305082f13) instead of the new connected account.
Only after refreshing the website did the wrap work without that error.
So I think there is some weird cache issue still on that page, not sure if it's a bug, but its not the user experience I would have hoped for

Video (partially captures the issue)

Screen.Recording.2024-05-31.at.07.25.58.mov

Expected behavior

switch the account when i switch it in metamask

Can the issue reliably be reproduced?

Yes

Example repository

Steps to reproduce

Language

Rust

Language Version

Version

Hardware specifications

  • Operating system:
    MACOS latest
  • RAM:
  • Cores:
  • Device:
    MacBook Air15

Additional info

@Phyloiota Phyloiota added the bug Something isn't working label Jun 3, 2024
@begonaalvarezd
Copy link
Member

begonaalvarezd commented Aug 12, 2024

Quick thoughts 💡:

  • About the network switch this can be because you might come from a website that defined the chain a bit different than what we have in evm toolkit, not sure how but its worth that you go to your metamask networks and see if you actually have the iota evm duplicated
  • About switching wallets, if I granted dapp permissions to multiple wallets then I can switch from metamask and then txs issued are all with the right selected account, the account you have active in metamask can differ from the one a dapp see, you have to switch yourself from metamask
  • About adding a new wallet, i see this actually happens to other classic dapps as big as opensea, if you want to connect to another account in metamask you first have to disconnect them all so you start fresh. Places like blockscout what they do is that they ask you which accounts you want to connect everytime, which is painful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants