Skip to content

fix(sdk): facilitatorApiKey is required on both networks, not just mainnet - #207

Merged
M0nsxx merged 1 commit into
mainfrom
fix/facilitator-api-key-both-networks-comment
Oct 25, 2026
Merged

M0nsxx merged 1 commit into
mainfrom
fix/facilitator-api-key-both-networks-comment

Conversation

@Eras256

@Eras256 Eras256 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • packages/sdk/src/index.ts's JSDoc comment on facilitatorApiKey said "Mainnet lo exige; testnet no." - directly contradicting the runtime check a few lines below, which throws on both networks ("the facilitator rejects unauthenticated servers on testnet too").
  • Same false claim in packages/sdk/README.md's quickstart example comment (line 192, "required on mainnet").

Test plan

  • npm run build passes
  • npm test passes: 56 jest + 126 node:test, 0 failures

🤖 Generated with Claude Code

…innet

The runtime check two lines below the JSDoc comment throws on BOTH
networks ("the facilitator rejects unauthenticated servers on testnet
too"), but the comment itself said "Mainnet lo exige; testnet no." -
directly contradicting the code it describes. Same false claim in the
README's quickstart example comment.

Build + test verified clean after the change (comment-only, but
checked anyway): tsc build passes, 56 jest + 126 node:test all pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@M0nsxx M0nsxx left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI green, same facilitatorApiKey fix on the SDK source side (item 3). Ready to merge.

@M0nsxx
M0nsxx merged commit af31a21 into main Oct 25, 2026
14 checks passed
@Eras256
Eras256 deleted the fix/facilitator-api-key-both-networks-comment branch November 4, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants