Skip to content

Commit

Permalink
fix: adding verifying paymasters to metadata v2 endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilkumar1612 committed Jan 27, 2025
1 parent 9b5723c commit 5f193ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/routes/metadata-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,10 @@ const metadataRoutes: FastifyPluginAsync = async (server) => {
chainsSupported: chainsSupported,
tokenPaymasters: tokenPaymasterAddresses,
multiTokenPaymasters,
sponsorDetails: { name: sponsorName, icon: sponsorImage }
sponsorDetails: { name: sponsorName, icon: sponsorImage },
verifyingPaymaster: { address: verifyingPaymaster, deposit: verifyingPaymasterDeposit },
verifyingPaymasters: apiKeyEntity.verifyingPaymasters ? JSON.parse(apiKeyEntity.verifyingPaymasters) : undefined,
verifyingPaymastersV2: apiKeyEntity.verifyingPaymastersV2 ? JSON.parse(apiKeyEntity.verifyingPaymastersV2) : undefined,
})
} catch (err: any) {
request.log.error(err);
Expand Down

0 comments on commit 5f193ab

Please sign in to comment.