Fix compilation problem.

This commit is contained in:
cheatfate 2020-12-01 23:36:01 +02:00 committed by zah
parent 0904ee5609
commit 42dd59852b
1 changed files with 3 additions and 2 deletions

View File

@ -120,8 +120,9 @@ proc installValidatorApiHandlers*(rpcServer: RpcServer, node: BeaconNode) =
rpcServer.rpc("get_v1_validator_attestation_data") do (
slot: uint64, committee_index: uint64) -> AttestationData:
let ares = node.attestationPool[].getAggregatedAttestation(slot,
committee_index)
let ares = node.attestationPool[].getAggregatedAttestation(
Slot(slot), CommitteeIndex(committee_index)
)
if ares.isSome():
return ares.get().data
else: