From 2e4174bdd6ffce5367f502897a5c822cccd6f3c0 Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Fri, 3 Jun 2022 22:52:17 +0100 Subject: [PATCH] Set fee recipient validator index as per spec. (#10814) The beacon API specification states that the `validator_index` field of the `fee_recipient` structure is a quoted string rather than a bare integer. This fixes up the encoding to match the spec. Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com> --- beacon-chain/rpc/apimiddleware/structs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon-chain/rpc/apimiddleware/structs.go b/beacon-chain/rpc/apimiddleware/structs.go index 245075f979..b7934bc3d5 100644 --- a/beacon-chain/rpc/apimiddleware/structs.go +++ b/beacon-chain/rpc/apimiddleware/structs.go @@ -550,7 +550,7 @@ type indexedAttestationJson struct { } type feeRecipientJson struct { - ValidatorIndex uint64 `json:"validator_index"` + ValidatorIndex string `json:"validator_index"` FeeRecipient string `json:"fee_recipient" hex:"true"` }