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

align WithdrawalRequestV1 with EIP-7002 and consensus spec #158

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/test_execution_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ suite "Execution types tests":

exit = WithdrawalRequestV1(
sourceAddress: address(7),
validatorPublicKey: FixedBytes[48].conv(9)
validatorPubkey: FixedBytes[48].conv(9)
)

test "payload version":
Expand Down
4 changes: 2 additions & 2 deletions web3/engine_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ type
signature*: FixedBytes[96]
index*: Quantity

# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.4/src/engine/prague.md#withdrawalrequestv1
# https://github.com/nflaig/execution-apis/blob/update-withdrawal-request/src/engine/prague.md#withdrawalrequestv1
WithdrawalRequestV1* = object
sourceAddress*: Address
validatorPublicKey*: FixedBytes[48]
validatorPubkey*: FixedBytes[48]
amount*: Quantity

# https://github.com/ethereum/execution-apis/blob/3ae3d29fc9900e5c48924c238dff7643fdc3680e/src/engine/prague.md#consolidationrequestv1
Expand Down