Skip to content

Commit

Permalink
rest: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill committed Aug 20, 2024
1 parent 2d7a7aa commit c6eb1e7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/sui-rest-api/src/checkpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async fn get_checkpoint_full(
Path(checkpoint_id): Path<CheckpointId>,
accept: AcceptFormat,
State(state): State<StateReader>,
) -> Result<ResponseContent<CheckpointData>> {
) -> Result<ResponseContent<sui_types::full_checkpoint_content::CheckpointData>> {
let verified_summary = match checkpoint_id {
CheckpointId::SequenceNumber(s) => {
// Since we need object contents we need to check for the lowest available checkpoint
Expand All @@ -85,8 +85,7 @@ async fn get_checkpoint_full(

let checkpoint_data = state
.inner()
.get_checkpoint_data(verified_summary, checkpoint_contents)?
.into();
.get_checkpoint_data(verified_summary, checkpoint_contents)?;

match accept {
AcceptFormat::Json => ResponseContent::Json(checkpoint_data),
Expand Down

0 comments on commit c6eb1e7

Please sign in to comment.