Put externalPluginIsSet as its own global; initialize it at launch

This commit is contained in:
pscott
2021-06-08 10:24:51 +02:00
parent 0de6e1011a
commit b651f530be
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ eth_plugin_result_t eth_plugin_perform_init(uint8_t *contractAddress,
dataContext.tokenContext.pluginStatus = ETH_PLUGIN_RESULT_UNAVAILABLE;
PRINTF("Selector %.*H\n", 4, init->selector);
if (tmpCtx.transactionContext.externalPluginIsSet) {
if (externalPluginIsSet) {
// check if the registered external plugin matches the TX contract address / method selector
if (memcmp(contractAddress,
dataContext.tokenContext.contract_address,