-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(class_hash): fix up named tuple types for references
It turns out that the `cairo_type` fields under `identifiers` are not the only place we can have Cairo type definitions... References have a `value` that's a Cairo expression, which can also contain type definitions via `cast()`: https://cairo-lang.org/docs/reference/syntax.html#expressions This change applies the replace hack "fix" to these properties too, so that named tuples for pre-0.10 classes (without `compiler_version`) are hashed properly.
- Loading branch information
Showing
2 changed files
with
81 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters