Skip to content

Commit 657c99f

Browse files
authored
beacon/types: update for fulu (#33349)
Should fix decoding JSON blocks in the Fulu fork. This diff was missing from #33349.
1 parent 129c562 commit 657c99f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

beacon/types/beacon_block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func BlockFromJSON(forkName string, data []byte) (*BeaconBlock, error) {
5252
obj = new(capella.BeaconBlock)
5353
case "deneb":
5454
obj = new(deneb.BeaconBlock)
55-
case "electra":
55+
case "electra", "fulu":
5656
obj = new(electra.BeaconBlock)
5757
default:
5858
return nil, fmt.Errorf("unsupported fork: %s", forkName)

beacon/types/exec_header.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func ExecutionHeaderFromJSON(forkName string, data []byte) (*ExecutionHeader, er
4545
switch forkName {
4646
case "capella":
4747
obj = new(capella.ExecutionPayloadHeader)
48-
case "deneb", "electra": // note: the payload type was not changed in electra
48+
case "deneb", "electra", "fulu": // note: the payload type was not changed in electra/fulu
4949
obj = new(deneb.ExecutionPayloadHeader)
5050
default:
5151
return nil, fmt.Errorf("unsupported fork: %s", forkName)

0 commit comments

Comments
 (0)