From 775f04b1dd205bd13c6d2159e861d41e13c610ce Mon Sep 17 00:00:00 2001 From: Pedro Yves Fracari <55461956+yvesfracari@users.noreply.github.com> Date: Mon, 21 Oct 2024 10:57:28 -0300 Subject: [PATCH] fix: Simulate bundle error message (#90) * fix: simulate bundle error message * change error code to 400 --- .../api/src/app/routes/__chainId/simulation/simulateBundle.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts index 160546c..82cde99 100644 --- a/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts +++ b/apps/api/src/app/routes/__chainId/simulation/simulateBundle.ts @@ -109,7 +109,7 @@ const root: FastifyPluginAsync = async (fastify): Promise => { params: paramsSchema, response: { '2XX': successSchema, - '404': errorSchema, + '400': errorSchema, }, }, }, @@ -123,7 +123,7 @@ const root: FastifyPluginAsync = async (fastify): Promise => { ); if (simulationResult === null) { - reply.code(404).send({ message: 'Token holders not found' }); + reply.code(400).send({ message: 'Build simulation error' }); return; } fastify.log.info(