metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: Solana - Not able to bridge to native SOL if I don't have a Solana Account in the wallet as token doesn't appear in the asset list

Open seaona opened this issue 1 year ago • 12 comments

Describe the bug

Whenever I don't have any Solana account in the wallet, I am not able to bridge to native SOL, to any Solana custom address, as the SOL token doesn't appear in the asset list, only SLP tokens appear

Expected behavior

We should be able to bridge to SOL native, even if I don't have a Solana account in my wallet, as I might want to bridge to a custom account, like it's possible with SLP tokens. Alternatively, we should not be able to select Solana bridge at all, if this feature is not yet supported

Screenshots/Recordings

https://github.com/user-attachments/assets/8f743883-ba6e-4568-bf58-3ce2fb3a7aa8

Steps to reproduce

  1. Without any Solana Account, select Mainnet
  2. Click Bridge
  3. Click To: Solana
  4. See SOL doesn't appear in the assets list

Error messages or log output


Detection stage

During release testing

Version

12.14.0

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

seaona avatar Mar 04 '25 13:03 seaona

Adding a sev1, just because this could be a release blocker

seaona avatar Mar 04 '25 13:03 seaona

hey @seaona, I see your point, so either we show SOL as part of the list of tokens or we don't show SPL tokens either. I think that behaviour aligns with the network picker:

  • When selecting Solana network (without first creating a Solana account), it will show a modal asking you to create first a Solana account. In this case, in my opinion, if the user wants a bridge to SOL, it should ask first to create a solana account, right?

cc: @aganglada

javiergarciavera avatar Mar 04 '25 16:03 javiergarciavera

I agree @javiergarciavera . I don't think it's a bug per se because the native token does not show until the account is created. This is probably a feature UX improvement whereas when a user wants to bridge to Solana and does not have an account, it should show the "Create a Solana account" modal first then the rest would follow. Cc: @aganglada @MetaMask/swaps-engineers @chaoticgoodpanda

ziedbrini avatar Mar 04 '25 16:03 ziedbrini

Are we sure? I think native SOL should appear even if you don't have account. then if you don't have an account, prompt you to do so.

aganglada avatar Mar 05 '25 09:03 aganglada

I agree with @ziedbrini. I don't think this a bug. In fact, what was the final decision on why the user has to manually create a Solana account? I thought we had worked out that we would auto-derive the Solana account, yes @Montoya ?

Per @ziedbrini 's point, I created a Jira ticket: https://consensyssoftware.atlassian.net/browse/MMS-2060?atlOrigin=eyJpIjoiMWZiNDkwMTdkMTU4NDJlMjgzZDkwMGE1NTY4ZWYxNGUiLCJwIjoiamlyYS1zbGFjay1pbnQifQ. But I've put this in the backlog, bc imo this is outside V1 scope and will require some planning. And I think auto-deriving is really the best UX.

I don't think this is a release blocker.

chaoticgoodpanda avatar Mar 05 '25 11:03 chaoticgoodpanda

I don't think the native SOL or any SPL token should appear if the user has not imported or created a Solana account. @chaoticgoodpanda if this is outside of v1, then the SOL native token should appear for consistency purposes for v1, and so I would consider the bug valid. Also, it was decided recently to not automatically create a Solana account. It's either the user imports via SRP or is invited to create an account. I hope it clarifies. Cc: @aganglada

ziedbrini avatar Mar 05 '25 11:03 ziedbrini

@ziedbrini as discussed, synced with stakeholders and the team and conclusion is that this is a SEV2, and we will handle before Solana V1 GA release.

chaoticgoodpanda avatar Mar 05 '25 17:03 chaoticgoodpanda

We decided to not auto-create a Solana account because the architecture of non-EVM accounts creates a privacy regression that the user cannot opt out of immediately.

SEV2 is fine! We can also explore guiding users through the account creation flow if they want to bridge to Solana... but probably not necessary.

Montoya avatar Mar 05 '25 18:03 Montoya

@chaoticgoodpanda I believe you fix this. Should we post an update here and close the bug? Thanks!

ziedbrini avatar Mar 12 '25 14:03 ziedbrini

https://consensyssoftware.atlassian.net/browse/MMS-2061

ghgoodreau avatar Mar 12 '25 16:03 ghgoodreau

@ghgoodreau has this https://github.com/MetaMask/metamask-extension/pull/30923 been cherry picked into https://github.com/MetaMask/metamask-extension/pull/30659 to include it in beta build?

javiergarciavera avatar Mar 13 '25 11:03 javiergarciavera

Fixed

javiergarciavera avatar Mar 19 '25 13:03 javiergarciavera