Minimize includes in header files to what they depend on
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#ifdef HAVE_NFT_SUPPORT
|
||||
|
||||
#include <string.h>
|
||||
#include "erc1155_plugin.h"
|
||||
#include "eth_plugin_internal.h"
|
||||
#include "ethUtils.h"
|
||||
|
||||
static const uint8_t ERC1155_APPROVE_FOR_ALL_SELECTOR[SELECTOR_SIZE] = {0xa2, 0x2c, 0xb4, 0x65};
|
||||
static const uint8_t ERC1155_SAFE_TRANSFER_SELECTOR[SELECTOR_SIZE] = {0xf2, 0x42, 0x43, 0x2a};
|
||||
|
||||
@@ -3,12 +3,11 @@
|
||||
|
||||
#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 "uint256.h"
|
||||
#include "nft.h"
|
||||
|
||||
// Internal plugin for EIP 1155: https://eips.ethereum.org/EIPS/eip-1155
|
||||
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
#ifdef HAVE_NFT_SUPPORT
|
||||
|
||||
#include <string.h>
|
||||
#include "erc1155_plugin.h"
|
||||
#include "eth_plugin_internal.h"
|
||||
#include "utils.h"
|
||||
#include "ethUtils.h"
|
||||
|
||||
static void handle_safe_transfer(ethPluginProvideParameter_t *msg, erc1155_context_t *context) {
|
||||
uint8_t new_value[INT256_LENGTH];
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
#ifdef HAVE_NFT_SUPPORT
|
||||
|
||||
#include <string.h>
|
||||
#include "erc1155_plugin.h"
|
||||
#include "eth_plugin_interface.h"
|
||||
#include "ethUtils.h"
|
||||
#include "utils.h"
|
||||
|
||||
static void set_approval_for_all_ui(ethQueryContractUI_t *msg, erc1155_context_t *context) {
|
||||
switch (msg->screenIndex) {
|
||||
|
||||
Reference in New Issue
Block a user