From 6e28b2d2bbbafd4429f1ad4ca1fe38b9e4258545 Mon Sep 17 00:00:00 2001 From: Shramee Srivastav Date: Fri, 8 Nov 2024 12:52:11 +0700 Subject: [PATCH] feat: introspection for bytes31 --- crates/dojo/lang/src/derive_macros/introspect/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/dojo/lang/src/derive_macros/introspect/utils.rs b/crates/dojo/lang/src/derive_macros/introspect/utils.rs index 2b6e5bf5d3..f57f6b6335 100644 --- a/crates/dojo/lang/src/derive_macros/introspect/utils.rs +++ b/crates/dojo/lang/src/derive_macros/introspect/utils.rs @@ -6,6 +6,7 @@ pub struct TypeIntrospection(pub usize, pub Vec); // Provides type introspection information for primitive types pub fn primitive_type_introspection() -> HashMap { HashMap::from([ + ("bytes31".into(), TypeIntrospection(1, vec![248])), ("felt252".into(), TypeIntrospection(1, vec![251])), ("bool".into(), TypeIntrospection(1, vec![1])), ("u8".into(), TypeIntrospection(1, vec![8])),