Added a function to check if we are in the domain or the message struct
This commit is contained in:
@@ -598,6 +598,15 @@ bool path_advance(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
e_root_type path_get_root_type(void)
|
||||
{
|
||||
if (path_struct == NULL)
|
||||
{
|
||||
return ROOT_DOMAIN;
|
||||
}
|
||||
return path_struct->root_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Allocates the path indexes in memory and sets it with a depth of 0.
|
||||
*
|
||||
|
||||
@@ -37,6 +37,7 @@ bool path_advance(void);
|
||||
bool path_init(void);
|
||||
void path_deinit(void);
|
||||
bool path_new_array_depth(uint8_t size);
|
||||
e_root_type path_get_root_type(void);
|
||||
|
||||
#endif // HAVE_EIP712_FULL_SUPPORT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user