From 6d973e8a8f4313cfa1afa195d8a3a4bf91ad09cb Mon Sep 17 00:00:00 2001 From: tersec Date: Mon, 1 Jul 2024 11:48:55 +0000 Subject: [PATCH] align WithdrawalRequestV1 with EIP-7002 and consensus spec --- tests/test_execution_types.nim | 2 +- web3/engine_api_types.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_execution_types.nim b/tests/test_execution_types.nim index 070cff3..607d9a9 100644 --- a/tests/test_execution_types.nim +++ b/tests/test_execution_types.nim @@ -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": diff --git a/web3/engine_api_types.nim b/web3/engine_api_types.nim index c3537b2..6b22851 100644 --- a/web3/engine_api_types.nim +++ b/web3/engine_api_types.nim @@ -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