Skip to content

Commit

Permalink
feat: introspection for bytes31 (#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee authored Nov 8, 2024
1 parent ed12756 commit c7900e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/dojo/lang/src/derive_macros/introspect/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub struct TypeIntrospection(pub usize, pub Vec<usize>);
// Provides type introspection information for primitive types
pub fn primitive_type_introspection() -> HashMap<String, TypeIntrospection> {
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])),
Expand Down

0 comments on commit c7900e9

Please sign in to comment.