ChainSafe / ChainSafe/ssz

Allow to provide override values to `defaultValue()`

Open
#360 3 comments 0 reactions 0 assignees View on GitHub
meta-good-first-issue prio-low
Dominant language
TypeScript
Stars
61
Forks
26
Avg merge
3h 20m
Merged PRs (30d)
6

Description

It would be useful to directly provide overrides to `defaultValue`, e.g.

```ts
const validator = ValidatorContainer.defaultValue({activationEligibilityEpoch: 10, ...});
```
and missing values use defaults. This makes generating testing data a bit easier and look cleaner.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating ValidatorContainer.defaultValue and the tests covering default-value generation. Verify that callers can provide partial override values, unspecified values still receive defaults, and the testing-data use case is covered by the tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.