Skip to content

Commit 6519936

Browse files
ensi321nflaig
authored andcommitted
fix: update field naming to match engine api spec
1 parent be3af65 commit 6519936

File tree

1 file changed

+4
-2
lines changed
  • packages/beacon-node/src/execution/engine

1 file changed

+4
-2
lines changed

packages/beacon-node/src/execution/engine/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ type ExecutionPayloadRpcWithValue = {
116116
// even though CL tracks this as executionPayloadValue, EL returns this as blockValue
117117
blockValue: QUANTITY;
118118
blobsBundle?: BlobsBundleRpc;
119-
requests?: ExecutionRequestsRpc;
120119
shouldOverrideBuilder?: boolean;
120+
executionRequests?: ExecutionRequestsRpc;
121121
};
122122
type ExecutionPayloadResponse = ExecutionPayloadRpc | ExecutionPayloadRpcWithValue;
123123

@@ -266,8 +266,10 @@ export function parseExecutionPayload(
266266
executionPayloadValue = quantityToBigint(response.blockValue);
267267
data = response.executionPayload;
268268
blobsBundle = response.blobsBundle ? parseBlobsBundle(response.blobsBundle) : undefined;
269-
executionRequests = response.requests ? deserializeExecutionRequests(response.requests) : undefined;
270269
shouldOverrideBuilder = response.shouldOverrideBuilder ?? false;
270+
executionRequests = response.executionRequests
271+
? deserializeExecutionRequests(response.executionRequests)
272+
: undefined;
271273
} else {
272274
data = response;
273275
// Just set it to zero as default

0 commit comments

Comments
 (0)