Skip to content

Commit

Permalink
feat: introspection for bytes31
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee authored Nov 8, 2024
1 parent ed12756 commit 6e28b2d
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])),

Check warning on line 9 in crates/dojo/lang/src/derive_macros/introspect/utils.rs

View check run for this annotation

Codecov / codecov/patch

crates/dojo/lang/src/derive_macros/introspect/utils.rs#L9

Added line #L9 was not covered by tests
("felt252".into(), TypeIntrospection(1, vec![251])),
("bool".into(), TypeIntrospection(1, vec![1])),
("u8".into(), TypeIntrospection(1, vec![8])),
Expand Down

0 comments on commit 6e28b2d

Please sign in to comment.