Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented decoding and hash rules for execution requests #8668

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lucassaldanha
Copy link
Member

PR Description

Implementing the rules for decoding and hashing execution requests according to ethereum/execution-apis#591

Fixed Issue(s)

part of #8620

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Contributor

@gfukushima gfukushima left a comment

Choose a reason for hiding this comment

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

lgtm with a question

Comment on lines 23 to 25
/*
https://eips.ethereum.org/EIPS/eip-7251
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

if we do need this comment at all, maybe single line?

Comment on lines 44 to 68
switch (type) {
case DepositRequest.REQUEST_TYPE:
// https://eips.ethereum.org/EIPS/eip-6110
executionRequestsBuilder.deposits(
executionRequestsSchema
.getDepositRequestsSchema()
.sszDeserialize(data.slice(1))
.asList());
break;
case WithdrawalRequest.REQUEST_TYPE:
// https://eips.ethereum.org/EIPS/eip-7002
executionRequestsBuilder.withdrawals(
executionRequestsSchema
.getWithdrawalRequestsSchema()
.sszDeserialize(data.slice(1))
.asList());
break;
case ConsolidationRequest.REQUEST_TYPE:
// https://eips.ethereum.org/EIPS/eip-7251
executionRequestsBuilder.consolidations(
executionRequestsSchema
.getConsolidationRequestsSchema()
.sszDeserialize(data.slice(1))
.asList());
break;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: new syntax for case statements?

Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

LGTM just nits

Copy link

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

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.

4 participants