Skip to content

fix: align BeaconBlockBody and BlindedBeaconBlockBody - #6782

Merged
wemeetagain merged 2 commits into
electra-forkfrom
cayman/align-blinded-beaon-block-body
May 16, 2024
Merged

fix: align BeaconBlockBody and BlindedBeaconBlockBody#6782
wemeetagain merged 2 commits into
electra-forkfrom
cayman/align-blinded-beaon-block-body

Conversation

@wemeetagain

Copy link
Copy Markdown
Member

Motivation

  • eip-7688 uncovered an inconsistency between our electra BeaconBlockBody and BlindedBeaconBlockBody definitions

Description

  • align BeaconBlockBody and BlindedBeaconBlockBody
  • add unit test that enforces equal # of fields between known blinded/unblinded variant types

@wemeetagain
wemeetagain requested a review from a team as a code owner May 15, 2024 08:36
Comment thread packages/types/test/unit/blinded.test.ts

@nflaig nflaig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I removed the type hacks in tests and fixed the assertion to use toBeWithMessage

@wemeetagain
wemeetagain merged commit 44d9599 into electra-fork May 16, 2024
@wemeetagain
wemeetagain deleted the cayman/align-blinded-beaon-block-body branch May 16, 2024 12:12
g11tech pushed a commit that referenced this pull request May 24, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit to g11tech/lodestar that referenced this pull request Jun 19, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Jun 25, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Jun 25, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Jul 1, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Jul 30, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Jul 31, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Aug 2, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Aug 9, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Aug 9, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Aug 23, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
g11tech pushed a commit that referenced this pull request Aug 27, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
philknows pushed a commit that referenced this pull request Sep 3, 2024
* fix: align BeaconBlockBody and BlindedBeaconBlockBody

* Remove type hacks in test

---------

Co-authored-by: Nico Flaig <nflaig@protonmail.com>
@wemeetagain

Copy link
Copy Markdown
Member Author

馃帀 This PR is included in v1.22.0 馃帀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants