From e19006d6ba498fcb225816743a3719b5028e2f80 Mon Sep 17 00:00:00 2001 From: Hiroyoshi Takahashi Date: Fri, 29 Jul 2022 09:09:53 +0900 Subject: [PATCH] Fix validation error code --- src/handlers/sra_handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers/sra_handlers.ts b/src/handlers/sra_handlers.ts index f25f87a54..65f04c1be 100644 --- a/src/handlers/sra_handlers.ts +++ b/src/handlers/sra_handlers.ts @@ -135,7 +135,7 @@ function validateAssetTokenOrThrow(allowedTokens: string[], tokenAddress: string throw new ValidationError([ { field, - code: ValidationErrorCodes.ValueOutOfRange, + code: ValidationErrorCodes.TokenNotSupported, reason: `${tokenAddress} not supported`, }, ]);