Bug: register-qa-tokens fails on wSOL — native mint not on localnet validator #84

Closed
opened 2026-03-30 02:25:33 +00:00 by Brouie · 7 comments
Brouie commented 2026-03-30 02:25:33 +00:00 (Migrated from gitlab.com)

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).

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).
Brouie commented 2026-03-30 02:30:44 +00:00 (Migrated from gitlab.com)

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.

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.
Brouie commented 2026-03-30 02:31:08 +00:00 (Migrated from gitlab.com)

mentioned in issue #78

mentioned in issue #78
Brouie commented 2026-03-30 02:40:18 +00:00 (Migrated from gitlab.com)

mentioned in issue #85

mentioned in issue #85
Brouie commented 2026-03-30 06:14:21 +00:00 (Migrated from gitlab.com)

mentioned in issue #67

mentioned in issue #67
PlasticDigits commented 2026-03-30 08:40:33 +00:00 (Migrated from gitlab.com)

mentioned in commit 7d8ff76b64

mentioned in commit 7d8ff76b64062ec9665517effa571aac48fa973e
PlasticDigits commented 2026-03-30 08:48:10 +00:00 (Migrated from gitlab.com)

Implemented fix in feat/solana-integration (commit 7d8ff76): Docker now runs solana-test-validator directly with --clone of the wSOL mint from mainnet-beta; same clone in run-test-validator.sh and Anchor.toml for Anchor tests. Also fixed test RPC handling (0.0.0.0 → 127.0.0.1) and make solana-test-docker funding.

@Brouie — please verify on your side: make start-qa or at least docker compose up -d solana then confirm register-qa-tokens / full token setup completes and the SOL route is no longer misconfigured (first genesis needs outbound HTTPS to mainnet for the clone).

Implemented fix in `feat/solana-integration` (commit `7d8ff76`): Docker now runs `solana-test-validator` directly with `--clone` of the wSOL mint from mainnet-beta; same clone in `run-test-validator.sh` and `Anchor.toml` for Anchor tests. Also fixed test RPC handling (`0.0.0.0` → `127.0.0.1`) and `make solana-test-docker` funding. @Brouie — please verify on your side: `make start-qa` or at least `docker compose up -d solana` then confirm `register-qa-tokens` / full token setup completes and the SOL route is no longer misconfigured (first genesis needs outbound HTTPS to mainnet for the clone).
Brouie commented 2026-04-01 04:53:45 +00:00 (Migrated from gitlab.com)

verified -- SOL 23/23 on Verify All. wSOL mint cloned from mainnet-beta correctly.

verified -- SOL 23/23 on Verify All. wSOL mint cloned from mainnet-beta correctly.
Brouie (Migrated from gitlab.com) closed this issue 2026-04-01 04:54:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-bridge-monorepo#84
No description provided.