XLabs / portal-bridge-ui

Portal Bridge UI
https://www.portalbridge.com/
25 stars 35 forks source link

[bug] An error appears after clicking on "Create account" link if destination address was entered manually #1005

Closed tsadovska closed 1 month ago

tsadovska commented 1 month ago

Is there an existing issue for this?

Current Behavior

An error appears in Console:

Error: wallet.signAndSendTransaction is undefined
    at Ne (solana-4SlQZmA2-CEdK_Uie.js:7:52902)
    at signAndSendTransaction (pb-index-CZxC1Ciq.js:527:69330)
    at async Object.createAssociatedTokenAccount (pb-index-CZxC1Ciq.js:761:86349)
    at async vr (pb-index-CZxC1Ciq.js:761:84209)

image

Expected Behavior

User is redirected to token registration page.

Steps To Reproduce

  1. Open https://preview.portalbridge.com/859350d189/
  2. Prepare to send USDC (BSC) from BSC (MetaMask) to Solana (Wallet address entered manually)
  3. Click on "Create account" link in warning "No associated token account exists for your wallet on Solana. You must create it before proceeding."

Environment

- OS: macOS Sonoma 14.5
- Wallet: MetaMask
- Browser: Google Chrome Version 127.0.6533.100 (Official Build) (arm64)

Anything else?

No response

yuli-ferna commented 1 month ago

@tsadovska This should be fixed https://portalbridge.com/

image
tsadovska commented 1 month ago

Tested OK on https://portalbridge.com/. When wallet address is entered manually, message to "Create account" does not appear. Instead, a warning is displayed stating that "No bridge or swap route is available for the selected tokens". Ticket is closed.