From 8571cafcc8fcb6bb644836033724c5255cf21394 Mon Sep 17 00:00:00 2001 From: matejcik Date: Wed, 5 Dec 2018 14:24:32 +0100 Subject: [PATCH] trezor: call get_xpub with correct argument `creating` indicates that this is a new wallet. Which is always the case in `setup_device` --- electrum/plugins/trezor/trezor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/electrum/plugins/trezor/trezor.py b/electrum/plugins/trezor/trezor.py index 1dc858ca8..77954bf56 100644 --- a/electrum/plugins/trezor/trezor.py +++ b/electrum/plugins/trezor/trezor.py @@ -267,10 +267,9 @@ class TrezorPlugin(HW_PluginBase): _('Make sure it is in the correct state.')) # fixme: we should use: client.handler = wizard client.handler = self.create_handler(wizard) - creating = not device_info.initialized - if creating: + if not device_info.initialized: self.initialize_device(device_id, wizard, client.handler) - client.get_xpub('m', 'standard', creating) + client.get_xpub('m', 'standard', creating=True) client.used() def get_xpub(self, device_id, derivation, xtype, wizard):