devel-branch-compatibility tweaks for Nim in test_validator_client (#6686)

This commit is contained in:
tersec 2024-10-30 04:21:20 +00:00 committed by GitHub
parent a39dd8e874
commit 03fe86f448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -484,12 +484,12 @@ proc init(t: typedesc[phase0.Attestation], bits: string,
RestJson.decode(jdata, AttestationBitsObject)
except SerializationError as exc:
raiseAssert "Serialization error from [" & $exc.name & "]: " & $exc.msg
Attestation(aggregation_bits: bits.data,
phase0.Attestation(aggregation_bits: bits.data,
data: AttestationData(slot: slot, index: index))
proc init(t: typedesc[GetAggregatedAttestationResponse],
bits: string): GetAggregatedAttestationResponse =
GetAggregatedAttestationResponse(data: Attestation.init(bits))
GetAggregatedAttestationResponse(data: phase0.Attestation.init(bits))
proc init(t: typedesc[ProduceSyncCommitteeContributionResponse],
bits: string): ProduceSyncCommitteeContributionResponse =