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 832820d commit 1347fbb
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,8 +116,8 @@ type ExecutionPayloadRpcWithValue = {
// even though CL tracks this as executionPayloadValue, EL returns this as blockValue
blockValue: QUANTITY;
blobsBundle?: BlobsBundleRpc;
requests?: ExecutionRequestsRpc;
shouldOverrideBuilder?: boolean;
executionRequests?: ExecutionRequestsRpc;
};
type ExecutionPayloadResponse = ExecutionPayloadRpc | ExecutionPayloadRpcWithValue;

Expand Down Expand Up @@ -266,8 +266,10 @@ export function parseExecutionPayload(
executionPayloadValue = quantityToBigint(response.blockValue);
data = response.executionPayload;
blobsBundle = response.blobsBundle ? parseBlobsBundle(response.blobsBundle) : undefined;
executionRequests = response.requests ? deserializeExecutionRequests(response.requests) : undefined;
shouldOverrideBuilder = response.shouldOverrideBuilder ?? false;
executionRequests = response.executionRequests
? deserializeExecutionRequests(response.executionRequests)
: undefined;
} else {
data = response;
// Just set it to zero as default
Expand Down

0 comments on commit 1347fbb

Please sign in to comment.