Now shows the network name in the Stax public address UI flow

This commit is contained in:
Alexandre Paillier
2023-08-09 11:38:17 +02:00
parent a903e2db6e
commit b05b16143d
7 changed files with 55 additions and 17 deletions

View File

@@ -28,7 +28,8 @@ void ui_display_privacy_shared_secret(void) {
ux_flow_init(0, ux_display_privacy_shared_secret_flow, NULL);
}
void ui_display_public_key(void) {
void ui_display_public_key(const uint64_t *chain_id) {
(void) chain_id;
ux_flow_init(0, ux_display_public_flow, NULL);
}

View File

@@ -1,6 +1,6 @@
#ifdef HAVE_DOMAIN_NAME
#include "ux.h"
#include "ui_domain_name.h"
#include "domain_name.h"
//////////////////////////////////////////////////////////////////////

View File

@@ -158,6 +158,7 @@ UX_STEP_NOCB(
.title = "Max Fees",
.text = strings.common.maxFee,
});
UX_STEP_NOCB(
ux_approval_network_step,
bnnn_paging,
@@ -240,7 +241,7 @@ void ux_approve_tx(bool fromPlugin) {
}
uint64_t chain_id = get_tx_chain_id();
if (chainConfig->chainId == ETHEREUM_MAINNET_CHAINID && chain_id != chainConfig->chainId) {
if ((chainConfig->chainId == ETHEREUM_MAINNET_CHAINID) && (chain_id != chainConfig->chainId)) {
ux_approval_tx_flow[step++] = &ux_approval_network_step;
}