Skip to content

Commit

Permalink
drop useless conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
capossele committed Jan 10, 2025
1 parent 931ba4c commit 782bdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ pub fn generate_image_id_sol(guests: &[GuestListEntry]) -> Result<Vec<u8>> {
.iter()
.map(|guest| {
let name = guest.name.to_uppercase().replace('-', "_");
let image_id = hex::encode(Digest::from(guest.image_id));
let image_id = hex::encode(guest.image_id);
format!("bytes32 public constant {name}_ID = bytes32(0x{image_id});")
})
.collect();
Expand Down

0 comments on commit 782bdfa

Please sign in to comment.