From 223e051a81603d248b47558011bac3867e2df645 Mon Sep 17 00:00:00 2001 From: NC <17676176+ensi321@users.noreply.github.com> Date: Thu, 17 Oct 2024 08:10:57 -0700 Subject: [PATCH] fix: update field naming to match engine api spec --- packages/beacon-node/src/execution/engine/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/beacon-node/src/execution/engine/types.ts b/packages/beacon-node/src/execution/engine/types.ts index d8dcde1ee01..52ddb854862 100644 --- a/packages/beacon-node/src/execution/engine/types.ts +++ b/packages/beacon-node/src/execution/engine/types.ts @@ -116,7 +116,7 @@ type ExecutionPayloadRpcWithValue = { // even though CL tracks this as executionPayloadValue, EL returns this as blockValue blockValue: QUANTITY; blobsBundle?: BlobsBundleRpc; - requests?: ExecutionRequestsRpc; + executionRequests?: ExecutionRequestsRpc; shouldOverrideBuilder?: boolean; }; type ExecutionPayloadResponse = ExecutionPayloadRpc | ExecutionPayloadRpcWithValue; @@ -266,7 +266,9 @@ export function parseExecutionPayload( executionPayloadValue = quantityToBigint(response.blockValue); data = response.executionPayload; blobsBundle = response.blobsBundle ? parseBlobsBundle(response.blobsBundle) : undefined; - executionRequests = response.requests ? deserializeExecutionRequests(response.requests) : undefined; + executionRequests = response.executionRequests + ? deserializeExecutionRequests(response.executionRequests) + : undefined; shouldOverrideBuilder = response.shouldOverrideBuilder ?? false; } else { data = response;