Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Sep 24, 2024
1 parent 60dcf57 commit 03dc45b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rest-api/src/routes/bridgeLimitsRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ router.get(
.withMessage('Unsupported fromChain'),
check('toChain')
.exists()
.withMessage('Unsupported toChain')
.withMessage('toChain is required')
.isNumeric()
.custom((value) => CHAINS_ARRAY.some((c) => c.id === Number(value)))
.withMessage('toChain is required'),
.withMessage('Unsupported toChain'),
check('fromToken')
.exists()
.withMessage('fromToken is required')
Expand Down

0 comments on commit 03dc45b

Please sign in to comment.