Skip to content

Commit

Permalink
chore: get rid of metadata update
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jun 6, 2024
1 parent e72158a commit ef847d9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/torii/core/src/processors/metadata_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,7 @@ where
let resource = &event.data[0];
let uri_len: u8 = event.data[1].try_into().unwrap();

let uri_str = if uri_len > 0 {
ByteArray::cairo_deserialize(&event.data[2..=uri_len as usize + 1], 0)?.to_string()?
} else {
"".to_string()
};

let uri_str = ByteArray::cairo_deserialize(&event.data[1..=uri_len as usize + 1], 0)?.to_string()?;
info!(
target: LOG_TARGET,
resource = %format!("{:#x}", resource),
Expand Down

0 comments on commit ef847d9

Please sign in to comment.