From 08ca9504aab46a850ae0de31bf4dcf7ffdcaf9da Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 5 Mar 2020 10:35:39 +1100 Subject: [PATCH] Fix compile issue (#893) --- beacon_node/beacon_chain/tests/attestation_production.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon_node/beacon_chain/tests/attestation_production.rs b/beacon_node/beacon_chain/tests/attestation_production.rs index 7d1cc62eb..15fece863 100644 --- a/beacon_node/beacon_chain/tests/attestation_production.rs +++ b/beacon_node/beacon_chain/tests/attestation_production.rs @@ -8,7 +8,7 @@ use beacon_chain::{ StateSkipConfig, }; use tree_hash::TreeHash; -use types::{AggregateSignature, EthSpec, Hash256, Keypair, MainnetEthSpec, RelativeEpoch, Slot}; +use types::{AggregateSignature, EthSpec, Keypair, MainnetEthSpec, RelativeEpoch, Slot}; pub const VALIDATOR_COUNT: usize = 16; @@ -63,7 +63,7 @@ fn produces_attestations() { .block_at_slot(block_slot) .expect("should get block") .expect("block should not be skipped"); - let block_root = Hash256::from_slice(&block.message.tree_hash_root()); + let block_root = block.message.tree_hash_root(); let epoch_boundary_slot = state .current_epoch()