From f5d8fdbb4e61d65a4d0a6f9940fd7c02c12cd398 Mon Sep 17 00:00:00 2001 From: realbigsean Date: Sun, 13 Mar 2022 21:57:05 +0000 Subject: [PATCH] Proposer preparation data quoted validator index in API (#3080) ## Issue Addressed #3077 ## Proposed Changes Quotes around validator index in `prepare_beacon_proposer` endpoint Co-authored-by: realbigsean --- consensus/types/src/proposer_preparation_data.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/types/src/proposer_preparation_data.rs b/consensus/types/src/proposer_preparation_data.rs index f2ea96711..6179828a9 100644 --- a/consensus/types/src/proposer_preparation_data.rs +++ b/consensus/types/src/proposer_preparation_data.rs @@ -6,6 +6,7 @@ use serde::{Deserialize, Serialize}; #[derive(PartialEq, Debug, Serialize, Deserialize, Clone)] pub struct ProposerPreparationData { /// The validators index. + #[serde(with = "eth2_serde_utils::quoted_u64")] pub validator_index: u64, /// The fee-recipient address. pub fee_recipient: Address,