From 82d776f771ad88c48a457f9854e7766fa5b21f4e Mon Sep 17 00:00:00 2001 From: Francois Beutin Date: Mon, 15 Jan 2024 17:15:26 +0100 Subject: [PATCH] Remove macro unneeded by plugins from nft file --- src/eth_plugin_handler.h | 2 ++ src/nft.h | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/eth_plugin_handler.h b/src/eth_plugin_handler.h index acd982d..dab8ea4 100644 --- a/src/eth_plugin_handler.h +++ b/src/eth_plugin_handler.h @@ -6,6 +6,8 @@ #define NO_EXTRA_INFO(ctx, idx) \ (allzeroes(&(ctx.transactionContext.extraInfo[idx]), sizeof(extraInfo_t))) +#define NO_NFT_METADATA (NO_EXTRA_INFO(tmpCtx, 1)) + void eth_plugin_prepare_init(ethPluginInitContract_t *init, const uint8_t *selector, uint32_t dataSize); diff --git a/src/nft.h b/src/nft.h index 43ee5d1..6404dc4 100644 --- a/src/nft.h +++ b/src/nft.h @@ -1,14 +1,10 @@ -#ifndef _NFT_H_ -#define _NFT_H_ +#pragma once #include #define COLLECTION_NAME_MAX_LEN 70 -#define NO_NFT_METADATA (NO_EXTRA_INFO(tmpCtx, 1)) typedef struct nftInfo_t { uint8_t contractAddress[ADDRESS_LENGTH]; // must be first item char collectionName[COLLECTION_NAME_MAX_LEN + 1]; } nftInfo_t; - -#endif // _NFT_H_