Skip to content

Commit

Permalink
Merge pull request #642 from LedgerHQ/fbe/give_derivation_path_to_plugin
Browse files Browse the repository at this point in the history
Give knowledge of derivation path from eth to plugin
  • Loading branch information
fbeutin-ledger committed Sep 16, 2024
2 parents 396f4ab + a8dbb38 commit bd7f083
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ethereum-plugin-sdk
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 bd7f083

Please sign in to comment.