Skip to content

Commit

Permalink
no sat fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crypticmeta committed Oct 11, 2024
1 parent 2df86bb commit 4a15ba4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index/updater/inscription_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,13 @@ fn write_to_file(&mut self, to_write: String, flush: bool) -> Result {
.map(|p| p.to_string())
.collect::<Vec<_>>()
.join(","),
sat.unwrap(),
match sat {
Some(value) => value,
None => {
eprintln!("Warning: sat is None");
ordinals::Sat(0) // Create a new Sat with value 0
}
},
timestamp,
(!unbound).then_some(new_satpoint),
charms,
Expand Down

0 comments on commit 4a15ba4

Please sign in to comment.