Skip to content

Commit

Permalink
fix(lint): Fixed lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilaneDen committed Sep 12, 2023
1 parent c07fcca commit 58d999d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
8 changes: 6 additions & 2 deletions src/handle_finalize.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ void handle_finalize(void *parameters) {
case STAKE:
msg->numScreens = 1;
context->decimals_sent = DEFAULT_DECIMAL;
strlcpy(context->ticker_sent, STAKEWISE_STAKED_ETH2_TICKER, sizeof(context->ticker_sent));
strlcpy(context->ticker_sent,
STAKEWISE_STAKED_ETH2_TICKER,
sizeof(context->ticker_sent));
break;
case DEPOSIT_SELF_APECOIN:
msg->numScreens = 1;
Expand All @@ -29,7 +31,9 @@ void handle_finalize(void *parameters) {
case SWAP_TO:
msg->numScreens = 1;
context->decimals_received = DEFAULT_DECIMAL;
strlcpy(context->ticker_received, ROCKET_POOL_ETH_TICKER, sizeof(context->ticker_received));
strlcpy(context->ticker_received,
ROCKET_POOL_ETH_TICKER,
sizeof(context->ticker_received));
break;
case SWAP_FROM:
msg->numScreens = 2;
Expand Down
6 changes: 2 additions & 4 deletions src/handle_query_contract_ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ static screens_t get_screen_receive(ethQueryContractUI_t *msg,
}

static screens_t get_screen_submit_eth_lido(ethQueryContractUI_t *msg,
plugin_parameters_t *context
__attribute__((unused))) {
plugin_parameters_t *context __attribute__((unused))) {
switch (msg->screenIndex) {
case 0:
return RECIPIENT_SCREEN;
Expand All @@ -141,8 +140,7 @@ static screens_t get_screen_amount_sent_receive(ethQueryContractUI_t *msg,
}

static screens_t get_screen_value_sent(ethQueryContractUI_t *msg,
plugin_parameters_t *context
__attribute__((unused))) {
plugin_parameters_t *context __attribute__((unused))) {
switch (msg->screenIndex) {
case 0:
return SEND_VALUE_SCREEN;
Expand Down
15 changes: 8 additions & 7 deletions src/stakekit_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ extern const uint8_t NULL_ETH_ADDRESS[ADDRESS_LENGTH]; // REMOVE IF NOT USED
(!memcmp(_addr, PLUGIN_ETH_ADDRESS, ADDRESS_LENGTH) || \
!memcmp(_addr, NULL_ETH_ADDRESS, ADDRESS_LENGTH))

typedef enum { DEPOSIT_SELF_APECOIN,
WITHDRAW_SELF_APECOIN,
CLAIM_SELF_APECOIN,
SUBMIT_ETH_LIDO,
SWAP_TO,
SWAP_FROM,
STAKE,
typedef enum {
DEPOSIT_SELF_APECOIN,
WITHDRAW_SELF_APECOIN,
CLAIM_SELF_APECOIN,
SUBMIT_ETH_LIDO,
SWAP_TO,
SWAP_FROM,
STAKE,
} selector_t;

extern const uint8_t *const STAKEKIT_SELECTORS[NUM_STAKEKIT_SELECTORS];
Expand Down

0 comments on commit 58d999d

Please sign in to comment.