From ef847d9316f6ca23c36bb1873a3a06933ec462d1 Mon Sep 17 00:00:00 2001 From: Nasr Date: Thu, 6 Jun 2024 11:37:49 -0400 Subject: [PATCH] chore: get rid of metadata update --- crates/torii/core/src/processors/metadata_update.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/crates/torii/core/src/processors/metadata_update.rs b/crates/torii/core/src/processors/metadata_update.rs index a6d7f74cfe..4723d0d122 100644 --- a/crates/torii/core/src/processors/metadata_update.rs +++ b/crates/torii/core/src/processors/metadata_update.rs @@ -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),