diff --git a/ethereum-plugin-sdk b/ethereum-plugin-sdk index 0a98664..8fe6572 160000 --- a/ethereum-plugin-sdk +++ b/ethereum-plugin-sdk @@ -1 +1 @@ -Subproject commit 0a98664deba849f05a51407d8a3edb05cd83d464 +Subproject commit 8fe6572458355828097fa5183a41c83ccb25fece diff --git a/src/handle_provide_parameter.c b/src/handle_provide_parameter.c index 4bff9e4..89c883e 100644 --- a/src/handle_provide_parameter.c +++ b/src/handle_provide_parameter.c @@ -65,12 +65,11 @@ int find_lr_known_strategy(const char address[ADDRESS_STR_LEN]) { void handle_lr_deposit_into_strategy(ethPluginProvideParameter_t *msg, context_t *context) { uint8_t buffer[ADDRESS_LENGTH]; char address_buffer[ADDRESS_STR_LEN]; - cx_sha3_t sha3; switch (context->next_param) { case LR_DEPOSIT_INTO_STRATEGY_STRATEGY: copy_address(buffer, msg->parameter, sizeof(buffer)); - getEthDisplayableAddress(buffer, address_buffer, sizeof(address_buffer), &sha3, 0); + getEthDisplayableAddress(buffer, address_buffer, sizeof(address_buffer), 0); context->param_data.lr_deposit.strategy_to_display = find_lr_known_strategy(address_buffer); @@ -78,7 +77,7 @@ void handle_lr_deposit_into_strategy(ethPluginProvideParameter_t *msg, context_t break; case LR_DEPOSIT_INTO_STRATEGY_TOKEN: copy_address(buffer, msg->parameter, sizeof(buffer)); - getEthDisplayableAddress(buffer, address_buffer, sizeof(address_buffer), &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; @@ -98,8 +97,6 @@ void handle_lr_deposit_into_strategy(ethPluginProvideParameter_t *msg, context_t } void handle_lr_queue_withdrawal(ethPluginProvideParameter_t *msg, context_t *context) { - cx_sha3_t sha3; - // queueWithdrawal(uint256[],address[],uint256[],address,bool // example for queue withdrawal with 2 strategies indexes, contracts and shares // [0] selector @@ -164,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), - &sha3, 0); context->next_param = LR_QUEUE_WITHDRAWAL_UNDELEGATEIFPOSSIBLE; break;