From 03fe86f44887bd2ed7fa072bed06c0d0514e6dfb Mon Sep 17 00:00:00 2001 From: tersec Date: Wed, 30 Oct 2024 04:21:20 +0000 Subject: [PATCH] devel-branch-compatibility tweaks for Nim in test_validator_client (#6686) --- tests/test_validator_client.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_validator_client.nim b/tests/test_validator_client.nim index 4caafee66..8da419d56 100644 --- a/tests/test_validator_client.nim +++ b/tests/test_validator_client.nim @@ -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 =