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
72 stars 49 forks source link

[QA]Native gas token is sent even, when user has not had access to Native gas section #1923

Open AigaD opened 3 months ago

AigaD commented 3 months ago

Precondition: Metamask wallet connected at sending From section Solflare wallet connected at sending To section

Environment: OS: macOS Sonoma 14.4.1 Browser: Chrome Version 121.0.6167.85

Tested from: https://deploy-preview-1869--wormhole-connect-mainnet.netlify.app/

Steps:

  1. Prepare to send 0.01 WSOL from Polygon/Fantom to Solana
  2. Select Automatic Route
  3. Click on Approve and proceed with transaction
  4. Wait until transaction is completed

Actual result: Native gas token is sent/shown when for the automatic bridge transaction the Native gas section was not offered

Expected result: Native gas token section is not sent if user has not selected it in Native gas

Attachment: Polygon scan - 0x19b3e83c6f0db9aeba29a7644b15a9d5bbeec943006df73bee7752863ccc0fe7 Fantom scan

Screenshot 2024-04-12 at 09 12 12 Screenshot 2024-04-12 at 09 13 07 Screenshot 2024-04-12 at 10 30 26 Screenshot 2024-04-12 at 10 35 01
tsadovska commented 3 months ago

Issue is reproducible on Portal Bridge (0.2.12-6088580833) https://portalbridge.com/ and https://wormhole-connect-mainnet.netlify.app/ [Mainnet]. "Native gas token" field is displayed in "To" section when sending WSOL to Solana.

Screenshot 2024-04-12 at 15 12 20
AigaD commented 3 months ago

Tested from: https://deploy-preview-1869--wormhole-connect-mainnet.netlify.app/# Reproduced also when sending 0.01 WBNB from Avalanche to BSC using automatic bridge Attachment:

Screenshot 2024-04-12 at 15 26 54