Bug: Bridge from Solana button silently fails — no error when Phantom rejects localnet #92
Labels
No labels
agent:implement
agent:ready
backend
bug
cannot-reproduce
confirmed
desktop
docs
documentation
duplicate
enhancement
feature
frontend
good first issue
help wanted
high-risk
in-review
invalid
mobile
needs-triage
P0-critical
P1-high
P2-medium
P3-low
qa
QA
question
ready
report
responsive
security
security-escalate
smart-contract
solana
tablet
test-pass
ux
wallet-issue
wallet:keplr
wallet:metamask
wallet:station
wallet:walletconnect
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-bridge-monorepo#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
clicking 'BRIDGE FROM SOLANA' on Solana Localnet->Anvil does nothing. no console output, no error message, no Phantom popup. Phantom shows 'This feature is not supported when Solana Localnet is enabled' in its own UI but the bridge frontend gets no feedback.
the button should either show an error toast/banner when the wallet rejects, or detect localnet and warn the user upfront that Phantom doesn't support localnet signing.
this blocks all manual Solana E2E testing through the UI (#67). only automated e2e tests on the server can test Solana paths currently.
commit
74b5f3e, laptop Vite workflow, Phantom wallet.@Brouie I strongly dislike toasts but there should be an error box below the button when theres an issue
mentioned in commit
dd7e830b7dImplemented fix in
feat/solana-integration(commitdd7e830):formatSolanaWalletErrornormalizes non-Errorwallet rejects (e.g. code 4001) and adds context when messages mention localnet / not supported.sendSolanaTransactionnow requires an activepublicKey, wrapssignTransactionin a 90s timeout (Phantom can hang instead of rejecting), and validates a signed tx beforeserialize.useSolanaDepositrethrows after recording state soTransferFormalways sets the red error banner and callsresetSolana()(removes the fragile useEffect mirror).@Brouie could you review when you have a chance?
verified -- amber warning shows for Phantom on Solana Localnet. Backpack wallet works for localnet E2E (Solana->Anvil 2.985 TKNA, 4/4 complete). commit
dd7e830confirmed.mentioned in issue #96