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:
@@ -267,10 +267,9 @@ class TrezorPlugin(HW_PluginBase):
|
|||||||
_('Make sure it is in the correct state.'))
|
_('Make sure it is in the correct state.'))
|
||||||
# fixme: we should use: client.handler = wizard
|
# fixme: we should use: client.handler = wizard
|
||||||
client.handler = self.create_handler(wizard)
|
client.handler = self.create_handler(wizard)
|
||||||
creating = not device_info.initialized
|
if not device_info.initialized:
|
||||||
if creating:
|
|
||||||
self.initialize_device(device_id, wizard, client.handler)
|
self.initialize_device(device_id, wizard, client.handler)
|
||||||
client.get_xpub('m', 'standard', creating)
|
client.get_xpub('m', 'standard', creating=True)
|
||||||
client.used()
|
client.used()
|
||||||
|
|
||||||
def get_xpub(self, device_id, derivation, xtype, wizard):
|
def get_xpub(self, device_id, derivation, xtype, wizard):
|
||||||
|
|||||||
Reference in New Issue
Block a user