Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13.1 compiled class hash #537

Open
rianhughes opened this issue Mar 7, 2024 · 0 comments
Open

0.13.1 compiled class hash #537

rianhughes opened this issue Mar 7, 2024 · 0 comments

Comments

@rianhughes
Copy link
Contributor

in 0.13.1 we changed the definition of compiled_class_hash, specifically for Sierra 1.5.0 classes (i.e. code compiled with the new 2.6.0 compiler)

This means that current declaration code in SDKs won’t be able to declare classes compiled with 2.6.0
The relevant change is the addition of the bytecode_segments_length to the CASM class, which affects how the bytecode hash is computed (instead of one large chain-hash, it is a chain hash of function hashes, where functions code is determined by the locations in the new field). You can see the pythonic reference implementation here.

@rianhughes rianhughes changed the title 0.13.1 comiled class hash 0.13.1 compiled class hash Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant