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_