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 3d8554b commit 9482ec1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2281,18 +2281,19 @@ impl Index {

inscriptions.sort_by_key(|(sequence_number, _)| *sequence_number);

let mut result = Vec::new();
for (sequence_number, offset) in inscriptions.into_iter() {
let entry = sequence_number_to_inscription_entry
.get(sequence_number)?
.unwrap();

let satpoint = SatPoint { outpoint, offset };
inscriptions
.into_iter()
.map(|(sequence_number, offset)| {
let entry = sequence_number_to_inscription_entry
.get(sequence_number)?
.unwrap();

result.push((satpoint, InscriptionEntry::load(entry.value()).id))
}
let satpoint = SatPoint { outpoint, offset };

Ok(Some(result))
Ok((satpoint, InscriptionEntry::load(entry.value()).id))
})
.collect::<Result<_>>()
.map(Some)
}

pub fn get_address_info(&self, address: &Address) -> Result<Vec<OutPoint>> {
Expand Down

0 comments on commit 9482ec1

Please sign in to comment.