Skip to content

Commit bb11634

Browse files
Merge pull request #785 from LedgerHQ/feat/apa/whitelist_mm_7702
Added Metamask's Delegation Manager contract to the 7702 whitelist
2 parents 246a7e9 + e5c47f8 commit bb11634

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src_features/signAuthorizationEIP7702/whitelist_7702.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ static const eip7702_whitelist_t EIP7702_WHITELIST[] = {
2828
{.chain_id = 0,
2929
.name = "Simple7702Account",
3030
.address = {0x4C, 0xd2, 0x41, 0xE8, 0xd1, 0x51, 0x0e, 0x30, 0xb2, 0x07,
31-
0x63, 0x97, 0xaf, 0xc7, 0x50, 0x8A, 0xe5, 0x9C, 0x66, 0xc9}}};
31+
0x63, 0x97, 0xaf, 0xc7, 0x50, 0x8A, 0xe5, 0x9C, 0x66, 0xc9}},
32+
{.chain_id = 0,
33+
.name = "MetaMask Delegation Manager",
34+
.address = {0xdb, 0x9B, 0x1e, 0x94, 0xB5, 0xb6, 0x9D, 0xf7, 0xe4, 0x01,
35+
0xDD, 0xbe, 0xdE, 0x43, 0x49, 0x11, 0x41, 0x04, 0x7d, 0xB3}},
36+
};
3237

3338
const char *get_delegate_name(const uint64_t *chain_id, const uint8_t *address) {
3439
for (size_t i = 0; i < ARRAYLEN(EIP7702_WHITELIST); i++) {

src_features/signAuthorizationEIP7702/whitelist_7702.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <stdbool.h>
77
#include "common_utils.h"
88

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

1111
typedef struct eip7702_whitelist_s {
1212
const uint8_t address[ADDRESS_LENGTH];

0 commit comments

Comments
 (0)