1
0

trezor: call get_xpub with correct argument

`creating` indicates that this is a new wallet. Which is always the case
in `setup_device`
This commit is contained in:
matejcik
2018-12-05 14:24:32 +01:00
parent 8973bb6f71
commit 8571cafcc8

View File

@@ -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):