Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix backwards compatibility for add_private_key #18237

Merged
merged 2 commits into from
Jun 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions chia/daemon/keychain_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,8 @@ def get_keychain_for_request(self, request: Dict[str, Any]) -> Keychain:
async def handle_command(self, command: str, data: Dict[str, Any]) -> Dict[str, Any]:
try:
if command == "add_private_key":
return await self.add_key(
{"mnemonic_or_pk": data.get("mnemonic", None), "label": data.get("label", None), "private": True}
)
data["private"] = True
return await self.add_key(data)
Quexington marked this conversation as resolved.
Show resolved Hide resolved
elif command == "add_key":
return await self.add_key(data)
elif command == "check_keys":
Expand Down
Loading