Minimize includes in header files to what they depend on

This commit is contained in:
Alexandre Paillier
2022-03-08 17:59:36 +01:00
parent c548aba364
commit 23202f6a63
21 changed files with 43 additions and 25 deletions

View File

@@ -1,7 +1,10 @@
#ifdef HAVE_NFT_SUPPORT
#include <string.h>
#include "erc721_plugin.h"
#include "eth_plugin_internal.h"
#include "eth_plugin_interface.h"
#include "ethUtils.h"
static const uint8_t ERC721_APPROVE_SELECTOR[SELECTOR_SIZE] = {0x09, 0x5e, 0xa7, 0xb3};
static const uint8_t ERC721_APPROVE_FOR_ALL_SELECTOR[SELECTOR_SIZE] = {0xa2, 0x2c, 0xb4, 0x65};

View File

@@ -3,11 +3,10 @@
#ifdef HAVE_NFT_SUPPORT
#include <string.h>
#include "eth_plugin_handler.h"
#include "shared_context.h"
#include "ethUtils.h"
#include "utils.h"
#include <stdbool.h>
#include <stdint.h>
#include "ethUstream.h"
#include "nft.h"
// Internal plugin for EIP 721: https://eips.ethereum.org/EIPS/eip-721

View File

@@ -1,6 +1,10 @@
#ifdef HAVE_NFT_SUPPORT
#include <string.h>
#include "erc721_plugin.h"
#include "eth_plugin_interface.h"
#include "ethUtils.h"
#include "utils.h"
static void set_approval_ui(ethQueryContractUI_t *msg, erc721_context_t *context) {
switch (msg->screenIndex) {