-
Notifications
You must be signed in to change notification settings - Fork 53
Compute hinted class hash #685
Comments
Hi! We just fixed it in: #681 |
Yes, it is changed but I think in the abi section the struct is missing state_mutability property |
Along with the cairo-vm program, we are also storing the compiled program in a |
@SantiagoPittella with this (https://gist.github.com/marioiordanov/646683d1fe073e1682fbed5794c168dc) Cairo 0 contract the pythonic Cairo lang produces the following hash |
If you need information how its generated you can take a look at this implementation https://github.com/0xSpaceShard/starknet-devnet-rs/blob/2dfcf6c5f5b76338836b5767bc00ed8079796be7/crates/types/src/contract_class.rs#L106 |
@SantiagoPittella @juanbono I saw your changes to the ContractClass compute_deprecated_class_hash. The problem is that you rely on starknet_api and in its ABI they don't take in mind the stateMutability field |
Hi! I added a test for the class hash that you mention and looks like it's working. Are you using an specific version of The tests can be found here: |
How are you creating the
Or are you doing something different? |
Regarding this:
And our class_hash calculation worked correctly. |
I see in the code that compute_hinted_class_hash is being calculated as the keccak of this string
r#"{"abi": contract_class.abi, "program": contract_class.program}"#
.Should it be changed to reflect the actual information of abi and program of the json artifact
The text was updated successfully, but these errors were encountered: