From 7b5b5eecc4b92076f0e00dc6c4e0219dca75f431 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 7 Sep 2020 15:47:24 +1000 Subject: [PATCH] Add some quotes --- consensus/types/src/beacon_block_header.rs | 1 + consensus/types/src/beacon_state.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/consensus/types/src/beacon_block_header.rs b/consensus/types/src/beacon_block_header.rs index 04a20e56d3f..b815d6ce4ef 100644 --- a/consensus/types/src/beacon_block_header.rs +++ b/consensus/types/src/beacon_block_header.rs @@ -14,6 +14,7 @@ use tree_hash_derive::TreeHash; #[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Encode, Decode, TreeHash, TestRandom)] pub struct BeaconBlockHeader { pub slot: Slot, + #[serde(with = "crate::serde_utils::quoted_u64")] pub proposer_index: u64, pub parent_root: Hash256, pub state_root: Hash256, diff --git a/consensus/types/src/beacon_state.rs b/consensus/types/src/beacon_state.rs index 2eaaed0744c..a89922fcf61 100644 --- a/consensus/types/src/beacon_state.rs +++ b/consensus/types/src/beacon_state.rs @@ -157,6 +157,7 @@ where T: EthSpec, { // Versioning + #[serde(with = "crate::serde_utils::quoted_u64")] pub genesis_time: u64, pub genesis_validators_root: Hash256, pub slot: Slot, @@ -173,6 +174,7 @@ where // Ethereum 1.0 chain data pub eth1_data: Eth1Data, pub eth1_data_votes: VariableList, + #[serde(with = "crate::serde_utils::quoted_u64")] pub eth1_deposit_index: u64, // Registry