wormhole-foundation / wormhole-connect

Wormhole Connect brings all the functionality and utility of Wormhole right into your application and removes all of the complexity.
https://connect-in-style.wormhole.com/
Other
81 stars 63 forks source link

[QA] Native token of the previously selected network remains visible in the token list #2470

Closed tsadovska closed 2 weeks ago

tsadovska commented 2 months ago

Describe the current behavior in detail

Checked on wormhole-connect-mainnet with macOS Sonoma 14.5 and Google Chrome Version 128.0.6613.85 (Official Build) (arm64).

Steps:

  1. Select Polygon network and MATIC token in "From" section (MetaMask wallet was auto-connected)
  2. Select Ethereum network and ETH token in "To" section (MetaMask wallet was auto-connected)
  3. Change target chain from Ethereum to BSC
  4. Check if ETH token is displayed in the list

Actual result: ETH token is displayed in the list. Token is greyed out and cannot be selected. Expected result: ETH token should not be displayed in the list on BSC network, because it is a native token of Ethereum network.

Notes/ Attachments

https://github.com/user-attachments/assets/8ecfc35e-5511-4cab-b088-0931a0e8447e

artursapek commented 2 months ago

I don't think this is a bug. it works with any token. for example, select USDC on any EVM chain, then close the menu, then open it again and switch chains. USDC is at the top of the list. I think it's maintaining that for you on purpose in case you want to switch chains and keep the same token that you had before.