Skip to content

Commit

Permalink
Merge #490: Add missing argument to PassphraseUI.get_passphrase
Browse files Browse the repository at this point in the history
3313774 Add missing argument to PassphraseUI.get_passphrase (Andrew Chow)

Pull request description:

  get_passphrase was missing the argument available_on_device which causes some things to fail.

  Fixes #489

Top commit has no ACKs.

Tree-SHA512: 016c127d964592e4a260d4710612278b93f4caa8c407b04e77cd316e6ac1c008766a8c9caf442e8a30e67cac9032ca9093cda5efd3e667cd445fa3e64f450a31
  • Loading branch information
achow101 committed Mar 11, 2021
2 parents 0ad25a7 + 3313774 commit 2526370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hwilib/devices/trezor.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def get_pin(self, code: Optional[int] = None) -> NoReturn:
def disallow_passphrase(self) -> None:
self.return_passphrase = False

def get_passphrase(self) -> str:
def get_passphrase(self, available_on_device: bool) -> str:
if self.return_passphrase:
return self.passphrase
raise ValueError('Passphrase from Host is not allowed for Trezor T')
Expand Down

0 comments on commit 2526370

Please sign in to comment.