From 452d60033a91c7d8d8968890adc56b601fca0dc0 Mon Sep 17 00:00:00 2001 From: ken2812221 Date: Sun, 21 Jan 2018 22:59:27 +0800 Subject: [PATCH] Shows correct bech32 address on ledger --- plugins/ledger/ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ledger/ledger.py b/plugins/ledger/ledger.py index 2d1a593c4..908af2785 100644 --- a/plugins/ledger/ledger.py +++ b/plugins/ledger/ledger.py @@ -463,8 +463,9 @@ class Ledger_KeyStore(Hardware_KeyStore): address_path = self.get_derivation()[2:] + "/%d/%d"%sequence self.handler.show_message(_("Showing address ...")) segwit = Transaction.is_segwit_inputtype(txin_type) + segwitNative = txin_type == 'p2wpkh' try: - client.getWalletPublicKey(address_path, showOnScreen=True, segwit=segwit) + client.getWalletPublicKey(address_path, showOnScreen=True, segwit=segwit, segwitNative=segwitNative) except BTChipException as e: if e.sw == 0x6985: # cancelled by user pass