[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
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
- Without any Solana Account, select Mainnet
- Click Bridge
- Click To: Solana
- 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
Adding a sev1, just because this could be a release blocker
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
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
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.
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.
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 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.
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.
@chaoticgoodpanda I believe you fix this. Should we post an update here and close the bug? Thanks!
https://consensyssoftware.atlassian.net/browse/MMS-2061
@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?
Fixed