Remove macro unneeded by plugins from nft file

This commit is contained in:
Francois Beutin
2024-01-15 17:15:26 +01:00
parent ca8700f47c
commit 82d776f771
2 changed files with 3 additions and 5 deletions

View File

@@ -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);

View File

@@ -1,14 +1,10 @@
#ifndef _NFT_H_
#define _NFT_H_
#pragma once
#include <stdint.h>
#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_