Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give knowledge of derivation path from eth to plugin #642

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading