Skip to content

Commit

Permalink
fix: match fixed len for queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Jun 26, 2024
1 parent 4bfe05c commit b93b058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/torii/grpc/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl DojoWorld {
.iter()
.map(|bytes| {
if bytes.is_empty() {
return Ok("%".to_string());
return Ok("0x%".to_string());
}
Ok(FieldElement::from_byte_slice_be(bytes)
.map(|felt| format!("{felt:#x}"))
Expand Down Expand Up @@ -416,7 +416,7 @@ impl DojoWorld {
.iter()
.map(|bytes| {
if bytes.is_empty() {
return Ok("%".to_string());
return Ok("0x%".to_string());
}

Ok(FieldElement::from_byte_slice_be(bytes)
Expand Down

0 comments on commit b93b058

Please sign in to comment.