Now supports EIP-712 filtering with missing chain id & contract address

This commit is contained in:
Alexandre Paillier
2022-08-16 18:44:28 +02:00
parent 089de9e28f
commit 3ee1fa419a
9 changed files with 55 additions and 6 deletions

View File

@@ -52,6 +52,10 @@ bool eip712_context_init(void) {
return false;
}
// Since they are optional, they might not be provided by the JSON data
explicit_bzero(eip712_context->contract_addr, sizeof(eip712_context->contract_addr));
eip712_context->chain_id = 0;
struct_state = NOT_INITIALIZED;
return true;