Skip to content

Commit

Permalink
align WithdrawalRequestV1 with EIP-7002 and consensus spec (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Jul 1, 2024
1 parent 914b9ff commit 3ba859d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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":

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

consolidation = ConsolidationRequestV1(
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

0 comments on commit 3ba859d

Please sign in to comment.