Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Fix image filename (#153)
Browse files Browse the repository at this point in the history
When generating file name from a program deployment, use
the `image_file_name` instead of program name / tag.
  • Loading branch information
tuommaki authored Mar 19, 2024
1 parent 06ff0ec commit b1ad676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/node/src/types/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ pub struct Image(Hash);
impl TxFile<Image> {
pub fn try_from_prg_meta_data(value: &transaction::ProgramMetadata) -> Self {
TxFile::build(
value.name.clone(),
value.image_file_name.clone(),
value.image_file_url.clone(),
value.image_file_checksum.clone().into(),
Image(value.hash),
Expand Down

0 comments on commit b1ad676

Please sign in to comment.