Make plugins result status explicits on every case

This commit is contained in:
TamtamHero
2020-11-14 18:14:34 +01:00
parent e7428586d1
commit d432e57431
2 changed files with 20 additions and 10 deletions

View File

@@ -76,6 +76,7 @@ void erc20_plugin_call(int message, void *parameters) {
}
if (i == NUM_ERC20_SELECTORS) {
PRINTF("Unknown selector %.*H\n", SELECTOR_SIZE, msg->selector);
msg->result = ETH_PLUGIN_RESULT_ERROR;
break;
}
PRINTF("erc20 plugin init\n");
@@ -99,6 +100,7 @@ void erc20_plugin_call(int message, void *parameters) {
break;
default:
PRINTF("Unhandled parameter offset\n");
msg->result = ETH_PLUGIN_RESULT_ERROR;
break;
}
}