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

Add a new constructor for DeclareV2 #822

Closed
SantiagoPittella opened this issue Jul 14, 2023 · 0 comments · Fixed by #823
Closed

Add a new constructor for DeclareV2 #822

SantiagoPittella opened this issue Jul 14, 2023 · 0 comments · Fixed by #823
Assignees

Comments

@SantiagoPittella
Copy link
Collaborator

We need a constructor that doesn't compile to CASM, instead it receives the casm_class_hash and casm_contract_class, and just checks the casm_class_hash, like:

if ( casm_class_hash != compute_casm_class_hash(casm_contract_class) ) return Err;
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant