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

Fix contract class unmarshall for modern cairo compilers #656

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

baitcode
Copy link

Fixes: #655

Added workaround for abi data that is not string, but json object.

  • added contract casm compiled by scarn 2.7.0 compiler
  • added tests to unmarshall contract class from new casm json format

Fix ClassHash calculation for casm compiled classes for modern cairo compilers

  • Added bytecode_segment_lengths field to CasmClass, allowing for backward compatibility
  • Added NestedUInts type to handle deserialisation of CasmClass
  • Added test to check that ClassHash now respects bytecode_segment_lengths and calculates correct value

* added contract casm compiled by scarn 2.7.0 compiler
* added tests to unmarshall contract class from new casm json format
…compilers

* Added bytecode_segment_lengths field to CasmClass, allowing for backward compatibility
* Added NestedUInts type to handle deserialisation of CasmClass
* Added test to check that ClassHash now respects bytecode_segment_lengths and calculates correct value
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

Successfully merging this pull request may close these issues.

Support for modern CASM format
1 participant