Skip to content

Commit

Permalink
dix: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Dec 29, 2023
1 parent 63da049 commit 64a6f4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/middleware/validateParams.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
if (network !== 'matic' && network !== 'mumbai' && network !== 'amoy') {
return handleBadRequest({
res,
errMsg: `Invalid network ${network}. Network can either be matic or mumbai for PoS v1 routes`
errMsg: `Invalid network ${network}. Network can either be matic, mumbai or amoy for PoS v1 routes`
})
}
next()
Expand All @@ -42,7 +42,7 @@ export default {
if (network !== 'mainnet' && network !== 'testnet' && network !== 'cherry' && network !== 'blueberry' && network !== 'cardona') {
return handleBadRequest({
res,
errMsg: `Invalid network ${network}. Network can either be mainnet or testnet for zkEVM routes`
errMsg: `Invalid network ${network}. Network can either be mainnet or testnet or version including blueberry, cherry or cardona for zkEVM routes`
})
}
next()
Expand Down

0 comments on commit 64a6f4d

Please sign in to comment.