Skip to content

Commit c11c343

Browse files
committed
fix test
1 parent 4203b56 commit c11c343

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

beacon_node/http_api/src/aggregate_attestation.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
use crate::api_types::GenericResponse;
12
use crate::unsupported_version_rejection;
23
use crate::version::{add_consensus_version_header, V1, V2};
34
use beacon_chain::{BeaconChain, BeaconChainTypes};
4-
use eth2::types::{EndpointVersion, Hash256, Slot};
5+
use eth2::types::{self, EndpointVersion, Hash256, Slot};
56
use std::sync::Arc;
67
use types::fork_versioned_response::EmptyMetadata;
78
use types::{CommitteeIndex, ForkVersionedResponse};
@@ -53,6 +54,7 @@ pub fn get_aggregate_attestation<T: BeaconChainTypes>(
5354
e
5455
))
5556
})?
57+
.map(GenericResponse::from)
5658
.ok_or_else(|| {
5759
warp_utils::reject::custom_not_found("no matching aggregate found".to_string())
5860
})?;

0 commit comments

Comments
 (0)