Skip to content

Commit

Permalink
fix: update field naming to match engine api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ensi321 authored and nflaig committed Oct 18, 2024
1 parent be3af65 commit 223e051
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/beacon-node/src/execution/engine/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 223e051

Please sign in to comment.