Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SFT-2454: saving qr signed transaction to microsd error #359

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions ports/stm32/boards/Passport/modules/flows/sign_psbt_qr_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,18 @@ async def save_to_microsd(self):
# Add -signed to end. We won't offer to sign again.
target_fname = base + '-signed.psbt'

self.filename = await SaveToMicroSDFlow(filename=target_fname,
data=b2a_hex(self.signed_bytes),
success_text="psbt",
path=get_folder_path(DIR_TRANSACTIONS),
automatic=False,
auto_prompt=True).run()
try:
self.filename = await SaveToMicroSDFlow(filename=target_fname,
data=b2a_hex(self.signed_bytes),
success_text="psbt",
path=get_folder_path(DIR_TRANSACTIONS),
automatic=False,
auto_prompt=True).run()
except MemoryError as e:
await ErrorPage(text='Transaction is too complex: {}'.format(e)).show()
self.set_result(False)
return

if self.filename is None:
self.back()
return
Expand Down