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-2235: qr code fails to display multisig #361

Merged
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
16 changes: 11 additions & 5 deletions ports/stm32/boards/Passport/modules/flows/sign_psbt_qr_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async def get_signed_bytes(self):
self.goto(self.show_signed_transaction)

async def show_signed_transaction(self):
from pages import ShowQRPage
from pages import ShowQRPage, ErrorPage
from data_codecs.qr_type import QRType
from ubinascii import hexlify as b2a_hex
import microns
Expand All @@ -155,10 +155,16 @@ async def show_signed_transaction(self):
else:
raise RuntimeError('Unknown UR type: {}'.format(self.ur_type))

result = await ShowQRPage(qr_type=qr_type,
qr_data=qr_data,
left_micron=microns.MicroSD,
right_micron=microns.Checkmark).show()
result = False
try:
result = await ShowQRPage(qr_type=qr_type,
qr_data=qr_data,
left_micron=microns.MicroSD,
right_micron=microns.Checkmark).show()
except MemoryError as e:
await ErrorPage(text='Transaction is too complex: {}'.format(e)).show()
self.set_result(False)
return

if not result:
self.goto(self.save_to_microsd)
Expand Down