Now initializes a path in memory

This commit is contained in:
Alexandre Paillier
2022-05-02 15:30:26 +02:00
parent 7e35b96ec0
commit 0e386a4204
6 changed files with 51 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
#include "eip712.h"
#include "mem.h"
#include "sol_typenames.h"
#include "path.h"
uint8_t *typenames_array;
uint8_t *structs_array;
@@ -21,9 +22,16 @@ bool init_eip712_context(void)
if (init_sol_typenames() == false)
return false;
if (init_path() == false)
{
return false;
}
// set types pointer
if ((structs_array = mem_alloc(sizeof(uint8_t))) == NULL)
{
return false;
}
// create len(types)
*structs_array = 0;