Now initializes field hash struct in eip712 context

This commit is contained in:
Alexandre Paillier
2022-04-28 16:47:48 +02:00
parent 83dda443f4
commit a2a72edf83
3 changed files with 9 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
#include "mem.h"
#include "sol_typenames.h"
#include "path.h"
#include "field_hash.h"
uint8_t *typenames_array;
uint8_t *structs_array;
@@ -29,6 +30,11 @@ bool init_eip712_context(void)
return false;
}
if (field_hash_init() == false)
{
return false;
}
// set types pointer
if ((structs_array = mem_alloc(sizeof(uint8_t))) == NULL)
{