iotaledger / iotaledger/evm-toolkit
[Bug]: App does not correctly switch accounts (IOTA EVM Toolkit)
- Dominant language
- TypeScript
- Stars
- 5
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
### 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)
https://github.com/iotaledger/evm-toolkit/assets/77154511/898c155a-565c-42d6-b158-72059f4b9ef5
### 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
-
Contributor guide
Assessment
This issue has not been assessed yet.