Skip to content

refactor(server): use env var for wallet password and improve setup#47

Merged
gitsrc merged 2 commits intomainfrom
feature/mcp-runtime-wallet
Jul 8, 2025
Merged

refactor(server): use env var for wallet password and improve setup#47
gitsrc merged 2 commits intomainfrom
feature/mcp-runtime-wallet

Conversation

@gitsrc
Copy link
Member

@gitsrc gitsrc commented Jul 8, 2025

This commit refactors the wallet management in the DANP-MCP-SERVER.

Key changes:

  • Replaces the hardcoded wallet password with the 'WALLET_PASSWORD' environment variable to enhance security.
  • Extracts wallet initialization into a dedicated 'setupWallet' function to improve code organization and modularity.
  • Adds detailed logging to the wallet setup process, including printing the active wallet address for better operational visibility.
  • Updates the .gitignore file to exclude all '.env' files and the local 'wallet.json' from version control, preventing accidental credential leaks."

gitsrc added 2 commits July 8, 2025 21:09
Signed-off-by: gitsrc <34047788+gitsrc@users.noreply.github.com>
Signed-off-by: gitsrc <34047788+gitsrc@users.noreply.github.com>
@gitsrc gitsrc merged commit 64f4cb8 into main Jul 8, 2025
6 checks passed
@gitsrc gitsrc deleted the feature/mcp-runtime-wallet branch July 8, 2025 13:27
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