Skip to content

Commit

Permalink
fix(node): pop and flatten the result instead of indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer committed Nov 4, 2024
1 parent a5046e2 commit 31d94d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/iota-json-rpc/src/read_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,9 @@ impl ReadApiServer for ReadApi {
.map_err(|e| {
error!("Failed to retrieve checkpoint sequence for transaction {digest:?} with error: {e:?}");
Error::from(e)
})?[0];
})?
.pop()
.flatten();

if let Some(checkpoint_seq) = &temp_response.checkpoint_seq {
let kv_store = self.transaction_kv_store.clone();
Expand Down

0 comments on commit 31d94d6

Please sign in to comment.