Renamed the stax shared buffer

This commit is contained in:
Alexandre Paillier
2023-07-06 16:02:40 +02:00
parent 7c83c15f9f
commit 04c9e890e5
5 changed files with 33 additions and 28 deletions

View File

@@ -5,7 +5,7 @@
#include "glyphs.h"
#include "network.h"
char staxSharedBuffer[SHARED_BUFFER_SIZE] = {0};
char g_stax_shared_buffer[SHARED_BUFFER_SIZE] = {0};
nbgl_page_t *pageContext;
#define FORMAT_PLUGIN "This app enables clear\nsigning transactions for\nthe %s dApp."
@@ -46,8 +46,8 @@ void ui_idle(void) {
app_name = caller_app->name;
if (caller_app->type == CALLER_TYPE_PLUGIN) {
snprintf(staxSharedBuffer, sizeof(staxSharedBuffer), FORMAT_PLUGIN, app_name);
tagline = staxSharedBuffer;
snprintf(g_stax_shared_buffer, sizeof(g_stax_shared_buffer), FORMAT_PLUGIN, app_name);
tagline = g_stax_shared_buffer;
}
} else { // Ethereum app
uint64_t mainnet_chain_id = ETHEREUM_MAINNET_CHAINID;