mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-04 04:45:16 +00:00
Shows correct bech32 address on ledger
This commit is contained in:
parent
fe54ce946c
commit
452d60033a
1 changed files with 2 additions and 1 deletions
|
@ -463,8 +463,9 @@ class Ledger_KeyStore(Hardware_KeyStore):
|
||||||
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence
|
address_path = self.get_derivation()[2:] + "/%d/%d"%sequence
|
||||||
self.handler.show_message(_("Showing address ..."))
|
self.handler.show_message(_("Showing address ..."))
|
||||||
segwit = Transaction.is_segwit_inputtype(txin_type)
|
segwit = Transaction.is_segwit_inputtype(txin_type)
|
||||||
|
segwitNative = txin_type == 'p2wpkh'
|
||||||
try:
|
try:
|
||||||
client.getWalletPublicKey(address_path, showOnScreen=True, segwit=segwit)
|
client.getWalletPublicKey(address_path, showOnScreen=True, segwit=segwit, segwitNative=segwitNative)
|
||||||
except BTChipException as e:
|
except BTChipException as e:
|
||||||
if e.sw == 0x6985: # cancelled by user
|
if e.sw == 0x6985: # cancelled by user
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue