Skip to content

Commit

Permalink
fix: validate START_EPOCH in all environments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AlexanderLukin committed Oct 18, 2023
1 parent a5c354e commit fe4b1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/config/env.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fe4b1a4

Please sign in to comment.