mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-17 00:47:03 +00:00
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)
|
RestJson.decode(jdata, AttestationBitsObject)
|
||||||
except SerializationError as exc:
|
except SerializationError as exc:
|
||||||
raiseAssert "Serialization error from [" & $exc.name & "]: " & $exc.msg
|
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))
|
data: AttestationData(slot: slot, index: index))
|
||||||
|
|
||||||
proc init(t: typedesc[GetAggregatedAttestationResponse],
|
proc init(t: typedesc[GetAggregatedAttestationResponse],
|
||||||
bits: string): GetAggregatedAttestationResponse =
|
bits: string): GetAggregatedAttestationResponse =
|
||||||
GetAggregatedAttestationResponse(data: Attestation.init(bits))
|
GetAggregatedAttestationResponse(data: phase0.Attestation.init(bits))
|
||||||
|
|
||||||
proc init(t: typedesc[ProduceSyncCommitteeContributionResponse],
|
proc init(t: typedesc[ProduceSyncCommitteeContributionResponse],
|
||||||
bits: string): ProduceSyncCommitteeContributionResponse =
|
bits: string): ProduceSyncCommitteeContributionResponse =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user