Bug: setup-test-tokens.sh uses placeholder faucet program ID #78

Closed
opened 2026-03-27 03:34:11 +00:00 by Brouie · 5 comments
Brouie commented 2026-03-27 03:34:11 +00:00 (Migrated from gitlab.com)

setup-test-tokens.sh hardcodes CL8YFaucet1111111111111111111111111111111 as the faucet program ID instead of using the deployed program ID (GDRbn9sCxgUeGYoHfS3S24egcDF9HjXtX94zjH4u849K). SPL token claim on FaucetPanel fails because the placeholder doesn't exist on-chain. Script creates 0 tokens. Faucet is critical for QA testing flows.

setup-test-tokens.sh hardcodes CL8YFaucet1111111111111111111111111111111 as the faucet program ID instead of using the deployed program ID (GDRbn9sCxgUeGYoHfS3S24egcDF9HjXtX94zjH4u849K). SPL token claim on FaucetPanel fails because the placeholder doesn't exist on-chain. Script creates 0 tokens. Faucet is critical for QA testing flows.
PlasticDigits commented 2026-03-27 09:19:07 +00:00 (Migrated from gitlab.com)

Update (automated follow-up)

This should now be addressed on feat/solana-integration:

  1. setup-test-tokens.sh — The default FAUCET_PROGRAM_ID matches the committed localnet cl8y_faucet keypair and Anchor.toml (B9zRqdnkfrMjLiW8n5Ejw6KSR9DmQscogpijoi5qyyY2), not a placeholder name.

  2. make start-qa / qa:full-token-setup — Added packages/contracts-solana/scripts/setup-qa-faucet.ts, invoked after registerAllTokens, so the faucet program is initialized and register_mint runs for QA SPL mints. That moves mint authority to the faucet PDA so Settings → Faucet claims work on Solana alongside EVM + Terra.

@Brouie Could you review when you have a moment (especially a quick pass on localnet faucet claims after make start-qa)? If this matches what you expected, we can close this issue.

Related commit: b293aff on feat/solana-integration.

## Update (automated follow-up) This should now be addressed on `feat/solana-integration`: 1. **`setup-test-tokens.sh`** — The default `FAUCET_PROGRAM_ID` matches the committed localnet `cl8y_faucet` keypair and `Anchor.toml` (`B9zRqdnkfrMjLiW8n5Ejw6KSR9DmQscogpijoi5qyyY2`), not a placeholder name. 2. **`make start-qa` / `qa:full-token-setup`** — Added `packages/contracts-solana/scripts/setup-qa-faucet.ts`, invoked after `registerAllTokens`, so the faucet program is initialized and `register_mint` runs for QA SPL mints. That moves mint authority to the faucet PDA so Settings → Faucet claims work on Solana alongside EVM + Terra. @Brouie Could you review when you have a moment (especially a quick pass on localnet faucet claims after `make start-qa`)? If this matches what you expected, we can close this issue. Related commit: `b293aff` on `feat/solana-integration`.
Brouie commented 2026-03-27 11:48:02 +00:00 (Migrated from gitlab.com)

mentioned in issue #67

mentioned in issue #67
Brouie commented 2026-03-28 03:10:39 +00:00 (Migrated from gitlab.com)

Saw the faucet setup run during make start-qa today — B9zRqdnkfrMjLiW8n5Ejw6KSR9DmQscogpijoi5qyyY2 deployed and setup-qa-faucet.ts ran after registerAllTokens. Can't verify frontend faucet claims yet because #82 blocks Solana interactions on the frontend. Will test once that's resolved.

Saw the faucet setup run during make start-qa today — B9zRqdnkfrMjLiW8n5Ejw6KSR9DmQscogpijoi5qyyY2 deployed and setup-qa-faucet.ts ran after registerAllTokens. Can't verify frontend faucet claims yet because #82 blocks Solana interactions on the frontend. Will test once that's resolved.
Brouie commented 2026-03-30 02:30:45 +00:00 (Migrated from gitlab.com)

mentioned in issue #84

mentioned in issue #84
Brouie commented 2026-03-30 02:31:07 +00:00 (Migrated from gitlab.com)

Faucet SPL claims verified working on 84cf7e4. Claimed TKNA via Settings > Faucet, balance shows 1.00 TKNA. setup-qa-faucet.ts runs correctly during make start-qa. Closing -- remaining token registration issues tracked in #84.

Faucet SPL claims verified working on 84cf7e4. Claimed TKNA via Settings > Faucet, balance shows 1.00 TKNA. setup-qa-faucet.ts runs correctly during make start-qa. Closing -- remaining token registration issues tracked in #84.
Brouie (Migrated from gitlab.com) closed this issue 2026-03-30 02:31:26 +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#78
No description provided.