UI handling WIP

This commit is contained in:
Alexandre Paillier
2022-05-12 17:29:35 +02:00
parent b8424d1a21
commit 9f29a7caa2
11 changed files with 271 additions and 26 deletions

View File

@@ -6,6 +6,7 @@
#include "sol_typenames.h"
#include "path.h"
#include "field_hash.h"
#include "ui_logic.h"
uint8_t *typenames_array;
uint8_t *structs_array;
@@ -35,6 +36,11 @@ bool init_eip712_context(void)
return false;
}
if (ui_712_init() == false)
{
return false;
}
// set types pointer
if ((structs_array = mem_alloc(sizeof(uint8_t))) == NULL)
{
@@ -45,3 +51,5 @@ bool init_eip712_context(void)
*structs_array = 0;
return true;
}
// TODO: Make a deinit function