Skip to content

Commit

Permalink
Fix unsupported by hardware wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
moisses89 committed Feb 1, 2024
1 parent 3ca56c7 commit f5e05d6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions safe_cli/operators/safe_tx_service_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,13 @@ def sign_message(

signatures = SafeSignature.export_signatures(safe_signatures)

if len(hw_wallet_signers):
raise NotImplementedError("SignHash by hardware wallet is not implemented")
if hw_wallet_signers:
print_formatted_text(
HTML(
"<ansired>Sign messages are not currently supported by hardware wallets</ansired>"
)
)
return False

if self.safe_tx_service.post_message(self.address, message, signatures):
print_formatted_text(
Expand Down

0 comments on commit f5e05d6

Please sign in to comment.