Bug: register-qa-tokens fails on wSOL — native mint not on localnet validator #84
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#84
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?
register-qa-tokens.ts fails with AccountNotInitialized on the wSOL mint (So11111111111111111111111111111111111111112) because the native SPL mint account doesn't exist on the local Solana validator. This causes SOL route to show ROUTE MISCONFIGURED on the frontend. Other SPL test tokens (TKNA/B/C, LUNC, KDEC) are registered fine. Local validator needs the native mint bootstrapped or the script needs to handle wSOL differently (e.g. spl-token create-account or solana program deploy native mint).
Additional impact from this bug: the script crashes on wSOL and doesn't complete all registrations. Result: Solana->Anvil TKNA shows MAX 1 / MIN 3 (contradictory, can't bridge). Solana->LocalTerra shows ROUTE MISCONFIGURED for all SPL tokens. Only partial token routes registered. FaucetPanel SPL claims work though -- #78 verified fixed.
mentioned in issue #78
mentioned in issue #85
mentioned in issue #67
mentioned in commit
7d8ff76b64Implemented fix in
feat/solana-integration(commit7d8ff76): Docker now runssolana-test-validatordirectly with--cloneof the wSOL mint from mainnet-beta; same clone inrun-test-validator.shandAnchor.tomlfor Anchor tests. Also fixed test RPC handling (0.0.0.0→127.0.0.1) andmake solana-test-dockerfunding.@Brouie — please verify on your side:
make start-qaor at leastdocker compose up -d solanathen confirmregister-qa-tokens/ full token setup completes and the SOL route is no longer misconfigured (first genesis needs outbound HTTPS to mainnet for the clone).verified -- SOL 23/23 on Verify All. wSOL mint cloned from mainnet-beta correctly.