Skip to content

Commit ccf1022

Browse files
authored
Fix capital version name being returned in JSON response version field. (#6905)
1 parent c673fbe commit ccf1022

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beacon_chain/spec/eth2_apis/eth2_rest_serialization.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ proc readValue*(reader: var JsonReader[RestJson],
19891989
proc writeValue*(writer: var JsonWriter[RestJson],
19901990
proof: ForkedAggregateAndProof) {.raises: [IOError].} =
19911991
writer.beginRecord()
1992-
writer.writeField("version", proof.kind)
1992+
writer.writeField("version", proof.kind.toString())
19931993
withAggregateAndProof(proof):
19941994
writer.writeField("data", forkyProof)
19951995
writer.endRecord()
@@ -4068,7 +4068,7 @@ proc readValue*(reader: var JsonReader[RestJson],
40684068
proc writeValue*(writer: var JsonWriter[RestJson],
40694069
attestation: ForkedAttestation) {.raises: [IOError].} =
40704070
writer.beginRecord()
4071-
writer.writeField("version", attestation.kind)
4071+
writer.writeField("version", attestation.kind.toString())
40724072
withAttestation(attestation):
40734073
writer.writeField("data", forkyAttestation)
40744074
writer.endRecord()

0 commit comments

Comments
 (0)