Skip to content

Commit ac245ef

Browse files
authored
chore: update payload_attributes event test data (#8308)
**Motivation** This is required to pass spec tests since spec example was updated in ethereum/beacon-APIs#550 **Description** Update `payload_attributes` event test data **Note:** we already emit all required fields, no changes needed there
1 parent 4703d1c commit ac245ef

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/api/test/unit/beacon/oapiSpec.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ const ignoredProperties: Record<string, IgnoredProperty> = {
6868
const openApiJson = await fetchOpenApiSpec(openApiFile);
6969
runTestCheckAgainstSpec(openApiJson, definitions, testDatas, ignoredOperations, ignoredProperties);
7070

71-
const ignoredTopics: string[] = [
72-
// TODO: fix in follow-up PR
73-
"payload_attributes",
74-
];
71+
const ignoredTopics: string[] = [];
7572

7673
// eventstream types are defined as comments in the description of "examples".
7774
// The function runTestCheckAgainstSpec() can't handle those, so the custom code before:

packages/api/test/unit/beacon/testData/events.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ export const eventTestData: EventData = {
235235
}),
236236
},
237237
[EventType.payloadAttributes]: {
238-
version: ForkName.capella,
239-
data: ssz.capella.SSEPayloadAttributes.fromJson({
238+
version: ForkName.electra,
239+
data: ssz.electra.SSEPayloadAttributes.fromJson({
240240
proposer_index: "123",
241241
proposal_slot: "10",
242242
parent_block_number: "9",
@@ -254,6 +254,7 @@ export const eventTestData: EventData = {
254254
amount: "15640",
255255
},
256256
],
257+
parent_beacon_block_root: "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2",
257258
},
258259
}),
259260
},

0 commit comments

Comments
 (0)