Bump Plugin interface version to v2

This commit is contained in:
pscott
2021-06-11 14:45:45 +02:00
parent 0bff1de52c
commit 27b91e4dea
2 changed files with 4 additions and 2 deletions

View File

@@ -147,7 +147,7 @@ eth_plugin_result_t eth_plugin_call(int method, void *parameter) {
switch (method) {
case ETH_PLUGIN_INIT_CONTRACT:
((ethPluginInitContract_t *) parameter)->interfaceVersion =
ETH_PLUGIN_INTERFACE_VERSION_1;
ETH_PLUGIN_INTERFACE_VERSION_2;
((ethPluginInitContract_t *) parameter)->result = ETH_PLUGIN_RESULT_UNAVAILABLE;
((ethPluginInitContract_t *) parameter)->pluginSharedRW = &pluginRW;
((ethPluginInitContract_t *) parameter)->pluginSharedRO = &pluginRO;

View File

@@ -9,8 +9,10 @@
#define PLUGIN_ID_LENGTH 30
// 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_1 = 1, // Version 1
ETH_PLUGIN_INTERFACE_VERSION_2 = 2 // Add dataPresent to txContent
} eth_plugin_interface_version_t;
typedef enum {