Now handles domain & message struct not based on order but on struct name
This commit is contained in:
@@ -64,6 +64,9 @@ typedef enum
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
#define DOMAIN_STRUCT_NAME "EIP712Domain"
|
||||
#define DOMAIN_STRUCT_NAME_LENGTH 12
|
||||
|
||||
// TODO: Move these into a new file
|
||||
const char *get_struct_name(const uint8_t *ptr, uint8_t *const length);
|
||||
const uint8_t *get_struct_fields_array(const uint8_t *ptr,
|
||||
|
||||
Reference in New Issue
Block a user