fix: replace removed get_seed call in PSBTSelectSeedView

Co-authored-by: Nick Klockenga <127377+newtonick@users.noreply.github.com>
This commit is contained in:
okaybro
2026-07-22 09:08:23 +05:30
co-authored by Nick Klockenga
parent 65e312c9a0
commit 442b7a1a52
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class PSBTSelectSeedView(View):
if len(seeds) > 0 and selected_menu_num < len(seeds):
# User selected one of the n seeds
self.controller.psbt_seed = self.controller.get_seed(selected_menu_num)
self.controller.psbt_seed = seeds[selected_menu_num]
return Destination(PSBTOverviewView)
# The remaining flows are a sub-flow; resume PSBT flow once the seed is loaded.
+12
View File
@@ -57,6 +57,18 @@ class TestPSBTFlows(FlowTest):
FlowStep(MainMenuView)
])
# Run the same PSBT flow again, this time selecting the seed that the
# previous flow left loaded in memory.
self.run_sequence([
FlowStep(MainMenuView, button_data_selection=MainMenuView.SCAN),
FlowStep(scan_views.ScanView, before_run=load_psbt_into_decoder),
FlowStep(psbt_views.PSBTSelectSeedView, screen_return_value=0),
FlowStep(psbt_views.PSBTOverviewView),
])
# Selecting the existing seed should have set it as the signing seed
assert self.controller.psbt_seed is self.controller.storage.seeds[0]
def test_scan_psbt_first_then_load_electrum_seed(self):
"""