Skip to content

Commit 6f302f0

Browse files
committed
refactor: simplify verifiers mapping in CCIP components
1 parent 6235ce7 commit 6f302f0

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

src/components/CCIP/Landing/ccip-landing.astro

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,7 @@ const directoryStructuredData = generateDirectoryStructuredData(environment, net
7878
environment={environment}
7979
client:visible
8080
lanes={searchLanes}
81-
verifiers={allVerifiers.map((verifier) => ({
82-
id: verifier.id,
83-
name: verifier.name,
84-
type: verifier.type,
85-
logo: verifier.logo,
86-
totalNetworks: verifier.totalNetworks,
87-
}))}
81+
verifiers={allVerifiers}
8882
/>
8983
<section class="layout">
9084
<div>

src/components/CCIP/Token/Token.astro

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,7 @@ const tokenStructuredData = generateTokenStructuredData(token, environment, chai
123123
tokens={allTokens}
124124
client:load
125125
lanes={searchLanes}
126-
verifiers={allVerifiers.map((verifier) => ({
127-
id: verifier.id,
128-
name: verifier.name,
129-
type: verifier.type,
130-
logo: verifier.logo,
131-
totalNetworks: verifier.totalNetworks,
132-
}))}
126+
verifiers={allVerifiers}
133127
token={{
134128
id: token,
135129
name: data[firstSupportedChain]?.name || "",

0 commit comments

Comments
 (0)