From e63a54ac1cf6deea605d552cb7a700dc936b7ed6 Mon Sep 17 00:00:00 2001 From: Nasr Date: Tue, 5 Nov 2024 13:19:35 -0500 Subject: [PATCH] fix(torii): i64 deser --- crates/torii/core/src/model.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/torii/core/src/model.rs b/crates/torii/core/src/model.rs index b45c8338fa..6660bba4fb 100644 --- a/crates/torii/core/src/model.rs +++ b/crates/torii/core/src/model.rs @@ -506,11 +506,8 @@ pub fn map_row_to_ty( primitive.set_i32(Some(value))?; } Primitive::I64(_) => { - let value = row.try_get::(&column_name)?; - let hex_str = value.trim_start_matches("0x"); - primitive.set_i64(Some( - i64::from_str_radix(hex_str, 16).map_err(ParseError::ParseIntError)?, - ))?; + let value = row.try_get::(&column_name)?; + primitive.set_i64(Some(value))?; } Primitive::I128(_) => { let value = row.try_get::(&column_name)?;