From 7ddd32f83d8f2ad2356ac91a46796cbe63feb4e0 Mon Sep 17 00:00:00 2001 From: TamtamHero <10632523+TamtamHero@users.noreply.github.com> Date: Tue, 31 Aug 2021 19:31:56 +0200 Subject: [PATCH] Improve plugin SDK version management --- src/eth_plugin_handler.c | 2 +- src/eth_plugin_interface.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eth_plugin_handler.c b/src/eth_plugin_handler.c index 725469c..d20e927 100644 --- a/src/eth_plugin_handler.c +++ b/src/eth_plugin_handler.c @@ -153,7 +153,7 @@ eth_plugin_result_t eth_plugin_call(int method, void *parameter) { case ETH_PLUGIN_INIT_CONTRACT: PRINTF("-- PLUGIN INIT CONTRACT --\n"); ((ethPluginInitContract_t *) parameter)->interfaceVersion = - ETH_PLUGIN_INTERFACE_VERSION_1; + ETH_PLUGIN_INTERFACE_VERSION_LATEST; ((ethPluginInitContract_t *) parameter)->result = ETH_PLUGIN_RESULT_UNAVAILABLE; ((ethPluginInitContract_t *) parameter)->pluginSharedRW = &pluginRW; ((ethPluginInitContract_t *) parameter)->pluginSharedRO = &pluginRO; diff --git a/src/eth_plugin_interface.h b/src/eth_plugin_interface.h index 2698e21..94d7b7e 100644 --- a/src/eth_plugin_interface.h +++ b/src/eth_plugin_interface.h @@ -12,6 +12,7 @@ // Interface version. To be updated everytime we introduce breaking changes to the plugin interface. typedef enum { ETH_PLUGIN_INTERFACE_VERSION_1 = 1, // Version 1 + ETH_PLUGIN_INTERFACE_VERSION_LATEST = 2, } eth_plugin_interface_version_t; typedef enum {