Skip to content

Commit

Permalink
Add some quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Sep 7, 2020
1 parent 9c46f66 commit 7b5b5ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions consensus/types/src/beacon_block_header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions consensus/types/src/beacon_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -173,6 +174,7 @@ where
// Ethereum 1.0 chain data
pub eth1_data: Eth1Data,
pub eth1_data_votes: VariableList<Eth1Data, T::SlotsPerEth1VotingPeriod>,
#[serde(with = "crate::serde_utils::quoted_u64")]
pub eth1_deposit_index: u64,

// Registry
Expand Down

0 comments on commit 7b5b5ee

Please sign in to comment.