XLabs / portal-bridge-ui

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

[QA] Can not register tBTC token on Solana #115

Closed AigaD closed 1 year ago

AigaD commented 1 year ago

Preconditions: Wallet is connected

Environment: MacBook Pro, macOS Ventura 13.0.1, Chrome Version 108.0.5359.98 Tested from: https://6d624a29.portal-bridge-ui.pages.dev/#/transfer

Steps:

  1. Prepare to send 0.00001 tBTC from Ethereum to Solana
  2. Click Next
  3. Connect Solana wallet
  4. Observe message "Target asset unavailable, is the token registered?"
  5. Click Register now
  6. Click Attest and Confirm on the wallet pop-up the transaction
  7. When possible click Create
  8. Observe

Actual result: After clicking Create on token register error message "Failed to get info about account.." is shown to the user.

Expected result: Token is registered user can proceed on token bridge screen.

Attachment: https://drive.google.com/file/d/1WwJEf6SoTYiEOc9lHqa9tS4NLjxi21GF/view?usp=share_link https://drive.google.com/file/d/1XB6gpKmn5T67xd2SfalhQPVluM2O9zp2/view?usp=share_link

Screenshot 2023-05-10 at 14 47 51
sebastianscatularo commented 1 year ago

Hi, @AigaD yes, attestation does not work for Solana on preview pages, this is a known issue.

AigaD commented 1 year ago

Tested from - https://28d92255.portal-bridge-ui.pages.dev/#/register for transfer Ethereum-Solana, tBTC token was asked to be registered, but the registration failed. Screen recording - https://drive.google.com/file/d/19pz9Qq9g0algDCm8BXUmHrXkfDPNIcAk/view?usp=share_link

sebastianscatularo commented 1 year ago

let me review this quickly @AigaD, my apologies for the delay, I'll keep you posted

sebastianscatularo commented 1 year ago

Mainnet

Goerli

AigaD commented 1 year ago

Tried creating token for transfer Arbitrum - >Solana and it failed. Tested from: https://www.portalbridge.com/#/register Arbiscan - https://arbiscan.io/tx/0x0072a603d637009da4573f5f488466aa06ce3126ef526b4d5892dec6b9874a87 Screen recording - https://drive.google.com/file/d/1sTlajHpslkH5e6ryANP1ECDZbfNbW-th/view?usp=share_link

sebastianscatularo commented 1 year ago

I'll check, but there is another known issue, at least for metaplex that is causing the same error, that's why NFT transfer to solana is paused.

For testnet, I'd pushed a fix to a branch, but it was built as mainnet build instead of testnet, will fix it shortly and share it with you

sebastianscatularo commented 1 year ago

yup, this is impacted by another issue at mainnet, here is the PR https://github.com/wormhole-foundation/wormhole/pull/2913 I'll update this ticket once I got more information. We have paused token attest on solana for now. see https://github.com/XLabs/portal-bridge-ui/pull/134