Added a function to check if we are in the domain or the message struct

This commit is contained in:
Alexandre Paillier
2022-05-16 15:15:00 +02:00
parent 2fa6379470
commit a0551e8226
2 changed files with 10 additions and 0 deletions

View File

@@ -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.
*

View File

@@ -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