You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
Check cairo-lang 0.11 source code (especially CachedState, State and StateReader implementations) to include the required methods for:
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
get_compiled_class(self, compiled_class_hash: int) -> CompiledClass
get_compiled_class_hash(self, class_hash: int) -> int
get_class_hash_at(self, contract_address: int) -> int
(check if their implementations require changes)get_compiled_class_by_class_hash(self, class_hash: int) -> CompiledClass
State:
set_compiled_class_hash(self, class_hash: int, compiled_class_hash: int)
set_class_hash_at(self, contract_address: int, class_hash: int)
Cairo-lang implementation:
cairo-lang/state_api.py at master · starkware-libs/cairo-lang
cairo-lang/state.py at master · starkware-libs/cairo-lang
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).
The text was updated successfully, but these errors were encountered: