Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

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
Member

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: Done
Development

No branches or pull requests

5 participants