XLabs / portal-bridge-ui

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

[bug] Switch should not be possible when destination wallet was entered manually #970

Closed tsadovska closed 3 months ago

tsadovska commented 3 months ago

Is there an existing issue for this?

Current Behavior

It is possible to switch networks when destination wallet was entered manually.

https://github.com/user-attachments/assets/c8587368-986f-4d12-a5cd-b9ca4bbd56cb

Expected Behavior

Switch should not be possible when destination wallet was entered manually.

Steps To Reproduce

  1. Select Avalanche as source chain and Connect MetaMask wallet
  2. Select Fantom as destination chain
  3. Click on "Connect wallet" button, enable Manual input
  4. Enter MetaMask wallet address
  5. Click on "Switch" button

Environment

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

Anything else?

No response

tsadovska commented 3 months ago

Re-checked issue on https://preview.portalbridge.com/859350d189/.

Swap is possible with following scenario:

  1. Select Avalanche as source chain and connect MetaMask wallet
  2. Select Solana as destination chain and enter valid address manually
  3. Disconnect MetaMask wallet in From section
  4. Click on "Switch" button

https://github.com/user-attachments/assets/be8afe45-9daf-4cd3-930c-27e7fe6c9333

tsadovska commented 3 months ago

Issue is no longer reproducible https://preview.portalbridge.com/859350d189/ [Mainnet]. Switch is not possible when destination wallet was entered manually. Ticket is closed.