network.c functions cleanup

This commit is contained in:
Alexandre Paillier
2023-06-16 15:52:03 +02:00
parent b87d0082be
commit 34ea137c1a
8 changed files with 73 additions and 90 deletions

View File

@@ -3,7 +3,7 @@
#include "shared_context.h"
#include "ui_callbacks.h"
#include "ui_nbgl.h"
#include "network.h"
#include "ethUtils.h"
#include "plugins.h"
#include "domain_name.h"

View File

@@ -47,7 +47,8 @@ void ui_idle(void) {
tagline = staxSharedBuffer;
}
} else { // Ethereum app
app_name = get_app_network_name();
uint64_t mainnet_chain_id = ETHEREUM_MAINNET_CHAINID;
app_name = get_network_name_from_chain_id(&mainnet_chain_id);
}
nbgl_useCaseHome((char *) app_name,