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 <sean@sigmaprime.io>
This commit is contained in:
realbigsean 2022-03-13 21:57:05 +00:00
parent 925e9241d1
commit f5d8fdbb4e

View File

@ -6,6 +6,7 @@ use serde::{Deserialize, Serialize};
#[derive(PartialEq, Debug, Serialize, Deserialize, Clone)] #[derive(PartialEq, Debug, Serialize, Deserialize, Clone)]
pub struct ProposerPreparationData { pub struct ProposerPreparationData {
/// The validators index. /// The validators index.
#[serde(with = "eth2_serde_utils::quoted_u64")]
pub validator_index: u64, pub validator_index: u64,
/// The fee-recipient address. /// The fee-recipient address.
pub fee_recipient: Address, pub fee_recipient: Address,