Now uses an eip712 context struct instead of having multiple global variables => reduced bss footprint

This commit is contained in:
Alexandre Paillier
2022-06-09 12:00:42 +02:00
parent 8ea34f9f00
commit f480d5091e
5 changed files with 32 additions and 28 deletions

View File

@@ -5,15 +5,18 @@
#include <stdbool.h>
extern uint8_t *typenames_array;
extern uint8_t *structs_array;
extern uint8_t *current_struct_fields_array;
typedef struct
{
uint8_t *typenames_array;
uint8_t *structs_array;
uint8_t *current_struct_fields_array;
} s_eip712_context;
extern s_eip712_context *eip712_context;
bool eip712_context_init(void);
void eip712_context_deinit(void);
extern bool eip712_context_initialized;
#endif // HAVE_EIP712_FULL_SUPPORT
#endif // EIP712_CTX_H_