Skip to content

Commit

Permalink
Updated to the latest plugin SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
apaillier-ledger authored and loicttn committed Apr 17, 2024
1 parent 9d1a999 commit d426226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ethereum-plugin-sdk
13 changes: 2 additions & 11 deletions src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,15 @@ void handle_lr_deposit_into_strategy(ethPluginProvideParameter_t *msg, context_t
switch (context->next_param) {
case LR_DEPOSIT_INTO_STRATEGY_STRATEGY:
copy_address(buffer, msg->parameter, sizeof(buffer));
getEthDisplayableAddress(buffer,
address_buffer,
sizeof(address_buffer),
msg->pluginSharedRW->sha3,
0);
getEthDisplayableAddress(buffer, address_buffer, sizeof(address_buffer), 0);
context->param_data.lr_deposit.strategy_to_display =
find_lr_known_strategy(address_buffer);

context->next_param = LR_DEPOSIT_INTO_STRATEGY_TOKEN;
break;
case LR_DEPOSIT_INTO_STRATEGY_TOKEN:
copy_address(buffer, msg->parameter, sizeof(buffer));
getEthDisplayableAddress(buffer,
address_buffer,
sizeof(address_buffer),
msg->pluginSharedRW->sha3,
0);
getEthDisplayableAddress(buffer, address_buffer, sizeof(address_buffer), 0);
context->param_data.lr_deposit.erc20_to_display = find_lr_known_erc20(address_buffer);

context->next_param = LR_DEPOSIT_INTO_STRATEGY_AMOUNT;
Expand Down Expand Up @@ -169,7 +161,6 @@ void handle_lr_queue_withdrawal(ethPluginProvideParameter_t *msg, context_t *con
getEthDisplayableAddress(buffer,
context->param_data.lr_queue_withdrawal.withdrawer,
sizeof(context->param_data.lr_queue_withdrawal.withdrawer),
msg->pluginSharedRW->sha3,
0);
context->next_param = LR_QUEUE_WITHDRAWAL_UNDELEGATEIFPOSSIBLE;
break;
Expand Down

0 comments on commit d426226

Please sign in to comment.