XLabs / portal-bridge-ui

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

[bug] "Amount" and "Gas fee" are not shown in "To" section when sending asset to Injective #1016

Open tsadovska opened 1 month ago

tsadovska commented 1 month ago

Is there an existing issue for this?

Current Behavior

"Amount" and "Gas fee" are not shown in "To" section.

Error in Console:

Error: Invalid string. Length must be a multiple of 4
    at getLens$1 (pb-index-D9hVyd9l.js:134:102015)
    at Object.toByteArray$1 (pb-index-D9hVyd9l.js:134:102330)
    at fromBase64$1 (pb-index-D9hVyd9l.js:519:158882)
    at decodeAttribute$1 (pb-index-D9hVyd9l.js:522:46052)
    at Array.map (<anonymous>)
    at decodeAttributes$4 (pb-index-D9hVyd9l.js:522:46248)
    at decodeEvent$4 (pb-index-D9hVyd9l.js:522:46343)
    at Array.map (<anonymous>)
    at decodeEvents$4 (pb-index-D9hVyd9l.js:522:46487)
    at decodeTxData$4 (pb-index-D9hVyd9l.js:522:46734)

image

Expected Behavior

"Amount" and "Gas fee" are shown in "To" section.

Steps To Reproduce

  1. Open https://preview.portalbridge.com/41c5f197e5/
  2. Prepare to send 0.0001 WMATIC from Solana (Phantom) to Injective (Leap)
  3. Click on "Approve and proceed with transaction" button
  4. Check if "Amount" and "Gas fee" are shown in "To" section

Environment

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

Anything else?

No response

agodlevska commented 4 weeks ago

Issue is reproducible on https://preview.portalbridge.com/41c5f197e5/.

tsadovska commented 3 weeks ago

Issue is reproducible on https://preview.portalbridge.com/321a610744/ and https://portalbridge.com/. Scenario checked: USDT transfer from Osmosis (Leap) to Injective (Leap)

image