From f739bb55510b9683aa0721f8d5ee125c58eb096d Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 15 Mar 2019 18:38:58 +1100 Subject: [PATCH] Add serde default field attr I accidentally deleted it in the last commit. --- eth2/types/src/beacon_state.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/eth2/types/src/beacon_state.rs b/eth2/types/src/beacon_state.rs index 9bcfa5cec..ec1008d3c 100644 --- a/eth2/types/src/beacon_state.rs +++ b/eth2/types/src/beacon_state.rs @@ -129,6 +129,7 @@ pub struct BeaconState { #[ssz(skip_deserializing)] #[tree_hash(skip_hashing)] pub cache_index_offset: usize, + #[serde(default)] #[ssz(skip_serializing)] #[ssz(skip_deserializing)] #[tree_hash(skip_hashing)]