From fe4b1a437c0ea90562b80f5193805daa0451cf0c Mon Sep 17 00:00:00 2001 From: Alexander Lukin Date: Wed, 18 Oct 2023 11:24:16 +0400 Subject: [PATCH] fix: validate `START_EPOCH` in all environments Remove checking that prevents validation of the `START_EPOCH` environment variable value in the test environment. So, now the validation rules for this variable become stronger. --- src/common/config/env.validation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/config/env.validation.ts b/src/common/config/env.validation.ts index 90029333..f8c0408a 100644 --- a/src/common/config/env.validation.ts +++ b/src/common/config/env.validation.ts @@ -160,7 +160,7 @@ export class EnvironmentVariables { @IsNumber() @Min(74240) // Altair @Transform(({ value }) => parseInt(value, 10), { toClassOnly: true }) - @ValidateIf((vars) => vars.NODE_ENV != Environment.test && vars.ETH_NETWORK === Network.Mainnet) + @ValidateIf((vars) => vars.ETH_NETWORK === Network.Mainnet) public START_EPOCH = 155000; @IsNumber()