diff --git a/Makefile b/Makefile index f0d0e64..db15e47 100755 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/icons/nanox_app_staderlabs.gif b/icons/nanox_app_staderlabs.gif index 73f2f32..0a7a8e0 100644 Binary files a/icons/nanox_app_staderlabs.gif and b/icons/nanox_app_staderlabs.gif differ diff --git a/src/handle_provide_parameter.c b/src/handle_provide_parameter.c index 1a30be8..f888aa2 100644 --- a/src/handle_provide_parameter.c +++ b/src/handle_provide_parameter.c @@ -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; } @@ -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; } } @@ -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; } } @@ -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; } } @@ -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; } }