Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src_features/signAuthorizationEIP7702/whitelist_7702.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ static const eip7702_whitelist_t EIP7702_WHITELIST[] = {
{.chain_id = 0,
.name = "Simple7702Account",
.address = {0x4C, 0xd2, 0x41, 0xE8, 0xd1, 0x51, 0x0e, 0x30, 0xb2, 0x07,
0x63, 0x97, 0xaf, 0xc7, 0x50, 0x8A, 0xe5, 0x9C, 0x66, 0xc9}}};
0x63, 0x97, 0xaf, 0xc7, 0x50, 0x8A, 0xe5, 0x9C, 0x66, 0xc9}},
{.chain_id = 0,
.name = "MetaMask Delegation Manager",
.address = {0xdb, 0x9B, 0x1e, 0x94, 0xB5, 0xb6, 0x9D, 0xf7, 0xe4, 0x01,
0xDD, 0xbe, 0xdE, 0x43, 0x49, 0x11, 0x41, 0x04, 0x7d, 0xB3}},
};

const char *get_delegate_name(const uint64_t *chain_id, const uint8_t *address) {
for (size_t i = 0; i < ARRAYLEN(EIP7702_WHITELIST); i++) {
Expand Down
2 changes: 1 addition & 1 deletion src_features/signAuthorizationEIP7702/whitelist_7702.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <stdbool.h>
#include "common_utils.h"

#define MAX_NAME_LEN 21 // 20 characters + '\0'
#define MAX_NAME_LEN 31 // 30 characters + '\0'

typedef struct eip7702_whitelist_s {
const uint8_t address[ADDRESS_LENGTH];
Expand Down
Loading