Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vignesha22 committed Aug 22, 2024
1 parent 9640ce0 commit efeca7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/routes/paymaster-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ const paymasterRoutes: FastifyPluginAsync = async (server) => {
) return reply.code(ReturnCode.FAILURE).send({ error: ErrorMessage.UNSUPPORTED_NETWORK_TOKEN })

const networkConfig = getNetworkConfig(chainId, supportedNetworks ?? '', entryPoint);
server.log.warn(networkConfig, `Network Config fetched for ${api_key}: `);
if (!networkConfig) return reply.code(ReturnCode.FAILURE).send({ error: ErrorMessage.UNSUPPORTED_NETWORK });
if (networkConfig.bundler.includes('etherspot.io')) networkConfig.bundler = `${networkConfig.bundler}?api-key=${bundlerApiKey}`;
server.log.warn(networkConfig, `Network Config fetched for ${api_key}: `);

let result: any;
switch (mode.toLowerCase()) {
Expand Down

0 comments on commit efeca7f

Please sign in to comment.