Skip to content

fix: suppress PASSWORD_REQUIRED error for --provider privy#330

Merged
TimNooren merged 1 commit intomainfrom
fix/wallet-privy-docs-and-error-wt
Mar 23, 2026
Merged

fix: suppress PASSWORD_REQUIRED error for --provider privy#330
TimNooren merged 1 commit intomainfrom
fix/wallet-privy-docs-and-error-wt

Conversation

@0xlaveen
Copy link
Copy Markdown
Contributor

Summary

Two fixes for the Privy wallet flow:

Issue 1: Skill docs missing Privy wallet flow

Updated skills/nansen-wallet-manager/SKILL.md - the Create section now shows both the local password flow and the Privy flow (--provider privy, no password needed, required env vars).

Issue 2: Misleading dual-error on nansen wallet create --provider privy

Added an isPrivy guard in src/wallet.js so when --provider privy is specified, the handler returns before reaching password resolution logic. Prevents the irrelevant PASSWORD_REQUIRED error from appearing alongside the Privy credentials error.

Changeset

Patch changeset added for the CLI fix.

Testing

Added a test confirming only the Privy credentials error appears when Privy env vars are missing (no PASSWORD_REQUIRED).

When Privy env vars are missing, only show the Privy-specific credentials
error instead of also emitting an irrelevant PASSWORD_REQUIRED message.
Also adds Privy wallet creation examples to the Create quick-reference
in the wallet manager skill docs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@TimNooren TimNooren merged commit a6b9b8f into main Mar 23, 2026
6 checks passed
@TimNooren TimNooren deleted the fix/wallet-privy-docs-and-error-wt branch March 23, 2026 14:11
@github-actions github-actions bot mentioned this pull request Mar 23, 2026
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