[Bug]: App does not correctly switch accounts (IOTA EVM Toolkit)
Phyloiota opened this issue · 1 comments
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