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

Add required functions and fields to the CachedState and State* traits to take into account compiled_classes #313

Closed
marco-paulucci opened this issue Apr 12, 2023 · 1 comment
Assignees
Labels

Comments

@marco-paulucci
Copy link
Collaborator

Check cairo-lang 0.11 source code (especially CachedState, State and StateReader implementations) to include the required methods for:

  • getting a compiled_class
  • setting a compiled_class
  • any other method introduced in this update.

PR: lambdaclass/starknet_in_rust: Pull Request 277
At the moment, we cannot execute CasmContractClass. This will be resolved in another PR. Therefore, the remaining tasks to be resolved in this PR are:

Implement the following methods in the traits:
StateReader

Delete the get_contract_class and set_contract_class methods from the StateReader and State traits and use the previously implemented methods to replace them. For now, only handle cases where get_compiled_class or get_compiled_class_by_class_hash return a Deprecated(DeprecatedContractClass).

@juanbono
Copy link
Member

This is already finished in a couple of PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

5 participants