ChainSafe / ChainSafe/ssz

Invalid gindex calculation

Open
#311 2 comments 2 reactions 0 assignees View on GitHub
meta-bug prio-medium
Dominant language
TypeScript
Stars
61
Forks
26
Avg merge
3h 20m
Merged PRs (30d)
6

Description

**Describe the bug**

```ts
import {ssz} from "@lodestar/types";

const {BeaconState} = ssz.phase0;
console.log(
BeaconState.getPathInfo(["validators", 0, "activationEpoch"]).gindex === BeaconState.getPathInfo(["validators", 0, "pubkey"]).gindex
);
// true
```

**Expected behavior**

`false`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.