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
77 stars 56 forks source link

[QA] An "Unexpected error" occurs after user changes asset #2289

Open tsadovska opened 1 month ago

tsadovska commented 1 month ago

Describe the current behavior in detail

Checked on https://portalbridge.com/ [Mainnet] with macOS Sonoma 14.5 and Google Chrome Version 126.0.6478.183 (Official Build) (arm64).

Steps:

  1. Prepare to send W (Base) asset from Base (MetaMask) to Optimism (MetaMask)
  2. Change asset to USDC (Base)

Actual result: An "Unexpected error" occurs.

Error: Minified React error #300; visit https://reactjs.org/docs/error-decoder.html?invariant=300 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Xh (pb-index-DpSSC7gq.js:44:21979)
    at dj (pb-index-DpSSC7gq.js:46:3493)
    at Wk (pb-index-DpSSC7gq.js:46:49465)
    at Vk (pb-index-DpSSC7gq.js:46:43855)
    at Uk (pb-index-DpSSC7gq.js:46:43778)
    at Jk (pb-index-DpSSC7gq.js:46:43618)
    at Ok (pb-index-DpSSC7gq.js:46:39596)
    at Fk (pb-index-DpSSC7gq.js:46:40494)
    at jg (pb-index-DpSSC7gq.js:44:3548)
    at pb-index-DpSSC7gq.js:46:37736

Expected result: Error does not occur.

What is the expected/desired behavior

https://github.com/user-attachments/assets/c186f850-27b8-4321-9196-4b5943f24a46

tsadovska commented 1 month ago

Reproducible on https://wormhole-connect-mainnet.netlify.app/ [Mainnet] with following scenario:

  1. Prepare to send SOL from Solana (Solflare) to Ethereum (MetaMask)
  2. Change asset to USDC

https://github.com/user-attachments/assets/11dd57c2-be12-4293-8921-abf60bfd60c4