From b7ba450e469909f778b6c952b0d35280f71adb03 Mon Sep 17 00:00:00 2001 From: defi-moses Date: Tue, 17 Sep 2024 01:23:46 +0100 Subject: [PATCH] fix linting errors --- packages/rest-api/src/controllers/bridgeTxInfoController.ts | 3 ++- packages/rest-api/src/tests/swapTxInfoRoute.test.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/rest-api/src/controllers/bridgeTxInfoController.ts b/packages/rest-api/src/controllers/bridgeTxInfoController.ts index 62e070d2f4..43ac7910da 100644 --- a/packages/rest-api/src/controllers/bridgeTxInfoController.ts +++ b/packages/rest-api/src/controllers/bridgeTxInfoController.ts @@ -12,7 +12,8 @@ export const bridgeTxInfoController = async (req, res) => { } try { - const { fromChain, toChain, amount, destAddress, fromToken, toToken } = req.query + const { fromChain, toChain, amount, destAddress, fromToken, toToken } = + req.query if (!isAddress(fromToken) || !isAddress(toToken)) { return res.status(400).json({ error: 'Invalid token address' }) diff --git a/packages/rest-api/src/tests/swapTxInfoRoute.test.ts b/packages/rest-api/src/tests/swapTxInfoRoute.test.ts index 479c925ef5..401857d376 100644 --- a/packages/rest-api/src/tests/swapTxInfoRoute.test.ts +++ b/packages/rest-api/src/tests/swapTxInfoRoute.test.ts @@ -30,7 +30,10 @@ describe('Swap TX Info Route with Real Synapse Service', () => { address: 'invalid_address', }) expect(response.status).toBe(400) - expect(response.body.error).toHaveProperty('message', 'Invalid Ethereum address') + expect(response.body.error).toHaveProperty( + 'message', + 'Invalid Ethereum address' + ) }, 10_000) it('should return 400 for unsupported chain, with error message', async () => {