Skip to content

Commit

Permalink
Give knowledge of derivation path from eth to plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
fbeutin-ledger committed Sep 13, 2024
1 parent e2917a8 commit a8dbb38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/eth_plugin_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 1 addition & 5 deletions src/shared_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "os.h"
#include "cx.h"
#include "bip32.h"
#include "bip32_utils.h"
#include "ethUstream.h"
#include "tx_content.h"
#include "chainConfig.h"
Expand All @@ -26,11 +27,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;
Expand Down

0 comments on commit a8dbb38

Please sign in to comment.