Skip to content

Commit

Permalink
Amend
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph committed Dec 20, 2024
1 parent 9482ec1 commit 6ce7ba3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1559,14 +1559,12 @@ impl Index {
&self,
outpoint: OutPoint,
) -> Result<Option<Vec<InscriptionId>>> {
if !self.index_inscriptions {
let Some(inscriptions) = self.get_inscriptions_on_output_with_satpoints(outpoint)? else {
return Ok(None);
}
};

Ok(Some(
self
.get_inscriptions_on_output_with_satpoints(outpoint)?
.unwrap_or_default()
inscriptions
.iter()
.map(|(_satpoint, inscription_id)| *inscription_id)
.collect(),
Expand Down

0 comments on commit 6ce7ba3

Please sign in to comment.