Skip to content

fix(townhouse): export loadWallet and saveWallet from package index (Story 45.1)#39

Merged
ALLiDoizCode merged 2 commits intomainfrom
fix/45-1-townhouse-export-loadwallet
May 9, 2026
Merged

fix(townhouse): export loadWallet and saveWallet from package index (Story 45.1)#39
ALLiDoizCode merged 2 commits intomainfrom
fix/45-1-townhouse-export-loadwallet

Conversation

@ALLiDoizCode
Copy link
Copy Markdown
Collaborator

Fix: Dockerfile.townhouse-api esbuild failure — missing loadWallet export

Smoke test run 25588661198 failed at esbuild with:

✘ [ERROR] No matching export in "../packages/townhouse/dist/index.js" for import "loadWallet"

Root cause: packages/townhouse/src/index.ts re-exports only WalletManager, encryptWallet, decryptWallet from the wallet module — loadWallet and saveWallet were omitted. docker/src/entrypoint-townhouse-api.ts (and the existing packages/townhouse/scripts/start-api-only.mjs) both import loadWallet from @toon-protocol/townhouse.

Fix: Add loadWallet and saveWallet to the wallet re-export line in src/index.ts. Both functions are already part of the wallet module's public API (wallet/index.ts exports them); this just surfaces them at the package level.

🤖 Generated with Claude Code

ALLiDoizCode and others added 2 commits May 8, 2026 22:12
entrypoint-townhouse-api.ts imports loadWallet from @toon-protocol/townhouse
but the main src/index.ts only re-exported WalletManager, encryptWallet,
and decryptWallet from the wallet module. loadWallet and saveWallet were
already used by scripts/start-api-only.mjs so this completes the public
API surface.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…tion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ALLiDoizCode ALLiDoizCode merged commit e01f7d5 into main May 9, 2026
7 checks passed
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.

1 participant