devel-branch-compatibility tweaks for Nim in test_validator_client (#6686)
This commit is contained in:
parent
a39dd8e874
commit
03fe86f448
|
@ -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,
|
||||
data: AttestationData(slot: slot, index: index))
|
||||
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 =
|
||||
|
|
Loading…
Reference in New Issue