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

nanox icon change #14

Merged
merged 3 commits into from
Nov 16, 2023
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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ APPNAME = "Staderlabs"
# Application version
APPVERSION_M = 1
APPVERSION_N = 1
APPVERSION_P = 0
APPVERSION_P = 1
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"

# Initialize plugin SDK submodule if needed
Expand Down
Binary file modified icons/nanox_app_staderlabs.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions src/handle_provide_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ static void handle_amount_received(const ethPluginProvideParameter_t *msg, conte
copy_parameter(context->amount_received, msg->parameter, sizeof(context->amount_received));
}

static void handle_unsupported_param(ethPluginProvideParameter_t *msg, const context_t *context) {
static void handle_unsupported_param(ethPluginProvideParameter_t *msg) {
#ifdef DEBUG
context_t *context = (context_t *) msg->pluginContext;
PRINTF("Param not supported: %d\n", context->next_param);
#endif

msg->result = ETH_PLUGIN_RESULT_ERROR;
}

Expand All @@ -19,7 +23,7 @@ static void handle_stake(ethPluginProvideParameter_t *msg, context_t *context) {
break;
// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand All @@ -37,7 +41,7 @@ static void handle_unstake(ethPluginProvideParameter_t *msg, context_t *context)
break;
// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand All @@ -51,7 +55,7 @@ static void handle_ethx_deposit(ethPluginProvideParameter_t *msg, context_t *con

// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand All @@ -70,7 +74,7 @@ static void handle_ethx_request_withdraw(ethPluginProvideParameter_t *msg, conte

// Keep this
default:
handle_unsupported_param(msg, context);
handle_unsupported_param(msg);
break;
}
}
Expand Down
Loading