diff --git a/legacy/firmware/.changelog.d/1453.fixed b/legacy/firmware/.changelog.d/1453.fixed new file mode 100644 index 0000000000..1672b03f08 --- /dev/null +++ b/legacy/firmware/.changelog.d/1453.fixed @@ -0,0 +1 @@ +Show full Stellar address and QR code. diff --git a/legacy/firmware/fsm_msg_stellar.h b/legacy/firmware/fsm_msg_stellar.h index b2ab413e61..267d423338 100644 --- a/legacy/firmware/fsm_msg_stellar.h +++ b/legacy/firmware/fsm_msg_stellar.h @@ -51,21 +51,17 @@ void fsm_msgStellarGetAddress(const StellarGetAddress *msg) { return; } + stellar_publicAddressAsStr(node->public_key + 1, resp->address, + sizeof(resp->address)); + if (msg->has_show_display && msg->show_display) { - const char **str_addr_rows = stellar_lineBreakAddress(node->public_key + 1); - layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), - _("Share public account ID?"), str_addr_rows[0], - str_addr_rows[1], str_addr_rows[2], NULL, NULL, NULL); - if (!protectButton(ButtonRequestType_ButtonRequest_ProtectCall, false)) { - fsm_sendFailure(FailureType_Failure_ActionCancelled, NULL); - layoutHome(); + if (!fsm_layoutAddress(resp->address, _("Public account ID"), false, 0, + msg->address_n, msg->address_n_count, true, NULL, 0, + 0, NULL)) { return; } } - stellar_publicAddressAsStr(node->public_key + 1, resp->address, - sizeof(resp->address)); - msg_write(MessageType_MessageType_StellarAddress, resp); layoutHome(); diff --git a/tests/ui_tests/fixtures.json b/tests/ui_tests/fixtures.json index 4bf62002a9..b327b7c261 100644 --- a/tests/ui_tests/fixtures.json +++ b/tests/ui_tests/fixtures.json @@ -509,16 +509,16 @@ "T1_reset_recovery-test_reset_bip39_t1.py::test_reset_device_128": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "T1_reset_recovery-test_reset_bip39_t1.py::test_reset_device_192": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "T1_reset_recovery-test_reset_bip39_t1.py::test_reset_device_256_pin": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", -"T1_stellar-test_stellar.py::test_get_address[parameters0-result0]": "294480ddac6d6e1a6ca470ff8029795de53d256788b38b1fa71cedb8caccf1e6", -"T1_stellar-test_stellar.py::test_get_address[parameters1-result1]": "7f122e064b1af375d81504649708490d2556ffa8572f26abfc1167b02cab0a41", -"T1_stellar-test_stellar.py::test_get_address[parameters2-result2]": "cf1eb8120ff50e9a3bc5639c2bb6fc2cd74cf9577a178aebbb48739da16e5f53", -"T1_stellar-test_stellar.py::test_get_address[parameters3-result3]": "fd1be10f6eece1afcffba01d31d858e6f0906a0a9272a034ab93251992d5d8dd", -"T1_stellar-test_stellar.py::test_get_address[parameters4-result4]": "434e747b119c808640551292d549066ba295d79756c62d6c90cd26f34cd5714e", -"T1_stellar-test_stellar.py::test_get_address[parameters5-result5]": "1246b1a3b5ed05702a364ca1b5e32c63135464fb52f58f6b872182bbc8ff7b3e", -"T1_stellar-test_stellar.py::test_get_address[parameters6-result6]": "23915de29ad1726a570dd08dae760afa1909a9476558d363ed5aa4519eb002df", -"T1_stellar-test_stellar.py::test_get_address[parameters7-result7]": "b08077a2673f26535c95cdd9ef236484796d337ee3ae55a03bafe7914ae97bfe", -"T1_stellar-test_stellar.py::test_get_address[parameters8-result8]": "2db2ea7492493c8f0381861ac613a57e1497147f0a68032b868ff3ab8d4591e3", -"T1_stellar-test_stellar.py::test_get_address[parameters9-result9]": "52c99baadca90d07dda43b4282c399596d9c3bbe9a5879746639dc499d864423", +"T1_stellar-test_stellar.py::test_get_address[parameters0-result0]": "b004cb1a815072ae3ba9f4aadeeb9d37d3309513e973f7ddeb2ee23a056db726", +"T1_stellar-test_stellar.py::test_get_address[parameters1-result1]": "101692e06782269486e3f1093fdf03200e0cdce4b4ffc7cc5fc779b80f69d1fc", +"T1_stellar-test_stellar.py::test_get_address[parameters2-result2]": "508bbd5285d2f3087fa3b872ff053a286630b80beacd0b8b30c8577aa5396c86", +"T1_stellar-test_stellar.py::test_get_address[parameters3-result3]": "a2b19a4e0337cb47b02c4d79f571a7297ac273f3bd95d3d5886d908fa8313c8c", +"T1_stellar-test_stellar.py::test_get_address[parameters4-result4]": "0d855560df510dfbb5cdb668fa84e3c6ba10b306c65929a6138d8c07d52f9087", +"T1_stellar-test_stellar.py::test_get_address[parameters5-result5]": "953bd04ca03df48a1635b944044914676e3d397080d1f86c25a5605ba4c103c2", +"T1_stellar-test_stellar.py::test_get_address[parameters6-result6]": "42b9120cba355febf542b6f6162c2ef2fe0265270f680802ce0aff1833c152aa", +"T1_stellar-test_stellar.py::test_get_address[parameters7-result7]": "bd662518d9e136e5eae64e507994f7b74075294634317a38669dd2671001a188", +"T1_stellar-test_stellar.py::test_get_address[parameters8-result8]": "c03fc37c6a4d2341b0081900b90ffc2faf09a228607d9d6c807efaff8ecc8fde", +"T1_stellar-test_stellar.py::test_get_address[parameters9-result9]": "9f1f4cae47cb5e9602450d110fd1945dbdb059996955d74067204966c0cc1702", "T1_stellar-test_stellar.py::test_sign_tx[StellarAccountMergeOp]": "3f55b35c47b3f0cf896793263006d9bc4089227f21e46e4e68f67386c1c85040", "T1_stellar-test_stellar.py::test_sign_tx[StellarAllowTrustOp-allow]": "8fd4d210bda197e57ee660e71158b295dd3f51f8df9a235e245d5a72f54c68e8", "T1_stellar-test_stellar.py::test_sign_tx[StellarAllowTrustOp-revoke]": "0834c3ffb6c8a792cfa8146de3641e3a4b95276b9583cd729350aca372528ed8",