From 49d066015b08901f5729148c4a27fb8872d42e8f Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 17 Apr 2019 10:33:31 +1000 Subject: [PATCH] Make genesis beacon state return a beacon state --- eth2/state_processing/src/get_genesis_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth2/state_processing/src/get_genesis_state.rs b/eth2/state_processing/src/get_genesis_state.rs index 21cdafcf9..2bde8ce0c 100644 --- a/eth2/state_processing/src/get_genesis_state.rs +++ b/eth2/state_processing/src/get_genesis_state.rs @@ -15,7 +15,7 @@ pub fn get_genesis_state( genesis_time: u64, genesis_eth1_data: Eth1Data, spec: &ChainSpec, -) -> Result<(), BlockProcessingError> { +) -> Result { // Get the genesis `BeaconState` let mut state = BeaconState::genesis(genesis_time, genesis_eth1_data, spec); @@ -42,7 +42,7 @@ pub fn get_genesis_state( // Generate the current shuffling seed. state.current_shuffling_seed = state.generate_seed(spec.genesis_epoch, spec)?; - Ok(()) + Ok(state) } impl From for GenesisError {