From 8b522c477029206cef30b7ac27cd8461c778d458 Mon Sep 17 00:00:00 2001 From: Daniel Tan Date: Thu, 31 Mar 2022 15:27:45 +0800 Subject: [PATCH 1/2] (fix) ensure that all private key inputs are hidden --- hummingbot/client/command/gateway_command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hummingbot/client/command/gateway_command.py b/hummingbot/client/command/gateway_command.py index 65b15a9ea1..46183a98a0 100644 --- a/hummingbot/client/command/gateway_command.py +++ b/hummingbot/client/command/gateway_command.py @@ -430,7 +430,8 @@ async def _gateway_connect( while True: use_existing_wallet: str = await self.app.prompt( prompt=f"Do you want to connect to {chain}-{network} with one of your existing wallets on " - f"Gateway? (Yes/No) >>> " + f"Gateway? (Yes/No) >>> ", + is_password=True ) if self.app.to_stop_config: return From 77eac8619a56df872441b3e1b4ed82f5b8f09528 Mon Sep 17 00:00:00 2001 From: Daniel Tan Date: Thu, 31 Mar 2022 16:45:58 +0800 Subject: [PATCH 2/2] (fix) address PR comments --- hummingbot/client/command/gateway_command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hummingbot/client/command/gateway_command.py b/hummingbot/client/command/gateway_command.py index 46183a98a0..f691f1e3db 100644 --- a/hummingbot/client/command/gateway_command.py +++ b/hummingbot/client/command/gateway_command.py @@ -414,7 +414,8 @@ async def _gateway_connect( self.app.clear_input() self.placeholder_mode = True wallet_private_key = await self.app.prompt( - prompt=f"Enter your {chain}-{network} wallet private key >>> " + prompt=f"Enter your {chain}-{network} wallet private key >>> ", + is_password=True ) self.app.clear_input() if self.app.to_stop_config: @@ -430,8 +431,7 @@ async def _gateway_connect( while True: use_existing_wallet: str = await self.app.prompt( prompt=f"Do you want to connect to {chain}-{network} with one of your existing wallets on " - f"Gateway? (Yes/No) >>> ", - is_password=True + f"Gateway? (Yes/No) >>> " ) if self.app.to_stop_config: return