From 160c827aa1366711f5700d953441a6c44d875696 Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Mon, 9 Sep 2024 17:47:04 +0200 Subject: [PATCH] Give knowledge of derivation path from eth to plugin --- src/eth_plugin_handler.c | 1 + src/shared_context.h | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/eth_plugin_handler.c b/src/eth_plugin_handler.c index 1d92ab631..8150eb730 100644 --- a/src/eth_plugin_handler.c +++ b/src/eth_plugin_handler.c @@ -211,6 +211,7 @@ eth_plugin_result_t eth_plugin_call(int method, void *parameter) { (uint8_t *) &dataContext.tokenContext.pluginContext; ((ethPluginInitContract_t *) parameter)->pluginContextLength = sizeof(dataContext.tokenContext.pluginContext); + ((ethPluginInitContract_t *) parameter)->bip32 = &tmpCtx.transactionContext.bip32; break; case ETH_PLUGIN_PROVIDE_PARAMETER: PRINTF("-- PLUGIN PROVIDE PARAMETER --\n"); diff --git a/src/shared_context.h b/src/shared_context.h index 323ffd177..9a1b49f86 100644 --- a/src/shared_context.h +++ b/src/shared_context.h @@ -26,11 +26,6 @@ extern void common_app_init(void); #define MAX_ASSETS 5 -typedef struct bip32_path_t { - uint8_t length; - uint32_t path[MAX_BIP32_PATH]; -} bip32_path_t; - typedef struct internalStorage_t { bool dataAllowed; bool contractDetails;