Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private isValid(value: any): ChainIDValidationError | null {
if (validateChain(value) !== ValidationResult.VALID) {
return new ChainIDValidationError(value, this, 'ChainID is not valid');
}
return null;
}