From 74e7eac7492c978f4470a7b0b85fe023f9aaa2ce Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Tue, 26 Nov 2024 21:25:52 +0300 Subject: [PATCH 1/3] add base sepolia --- src/services/eas.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/services/eas.service.ts b/src/services/eas.service.ts index bbfae19..370f344 100644 --- a/src/services/eas.service.ts +++ b/src/services/eas.service.ts @@ -139,6 +139,8 @@ class EASService { public async attestByDelegation( attestationPayload: AttestPayload ): Promise { + console.log('attestationPayload', attestationPayload); + if (!this.eas) { throw new Error('EAS is not initialized'); } @@ -149,6 +151,7 @@ class EASService { const attestationRequest = EASService.prepareAttestationRequest(convertedPayload); + console.log('attestationRequest', attestationRequest); try { const tx = await this.eas.attestByDelegation(attestationRequest); await tx.wait(); From 71a76d90774c9feb139077eb159b18e59e6f0d27 Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Tue, 26 Nov 2024 21:43:17 +0300 Subject: [PATCH 2/3] remove logs --- src/services/eas.service.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/services/eas.service.ts b/src/services/eas.service.ts index 370f344..bbfae19 100644 --- a/src/services/eas.service.ts +++ b/src/services/eas.service.ts @@ -139,8 +139,6 @@ class EASService { public async attestByDelegation( attestationPayload: AttestPayload ): Promise { - console.log('attestationPayload', attestationPayload); - if (!this.eas) { throw new Error('EAS is not initialized'); } @@ -151,7 +149,6 @@ class EASService { const attestationRequest = EASService.prepareAttestationRequest(convertedPayload); - console.log('attestationRequest', attestationRequest); try { const tx = await this.eas.attestByDelegation(attestationRequest); await tx.wait(); From eaa597c1c087d2698254f3f1d9f0d2811208147b Mon Sep 17 00:00:00 2001 From: mehditorabiv Date: Wed, 27 Nov 2024 17:44:01 +0300 Subject: [PATCH 3/3] fix --- src/pages/Permissions/Permissions.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/Permissions/Permissions.tsx b/src/pages/Permissions/Permissions.tsx index a4ac292..906bcbc 100644 --- a/src/pages/Permissions/Permissions.tsx +++ b/src/pages/Permissions/Permissions.tsx @@ -98,9 +98,14 @@ export function Permissions() { const decodedData = decodeAttestationData(attestation.data); const keyData = decodedData.find((field) => field.name === 'key'); + const provider = decodedData.find((field) => field.name === 'provider'); return { ...attestation, + provider: + typeof provider?.value.value === 'string' + ? provider.value.value + : undefined, key: typeof keyData?.value.value === 'string' ? keyData.value.value