Skip to content

Commit

Permalink
refactor(katana): use the exact same UDC class as Starknet (#2949)
Browse files Browse the repository at this point in the history
The UDC class that is currently being used hash a class hash of `0x035e13e8852c6fc49a9d87f9448079f69d6dae1795fe64e8a737eab8fd24dcb0` while the one that Starknet is officially using has the class hash of [`0x07b3e05f48f0c69e4a65ce5e076a66271a527aff2c34ce1083ec6e1526997a69`](https://voyager.online/class/0x07b3e05f48f0c69e4a65ce5e076a66271a527aff2c34ce1083ec6e1526997a69). 

The updated UDC class is exactly the same as the one used by Starknet therefore will result in the same class hash when it is computed. It is not an issue currently because we're hardcoding the class hash ourselves when it is inserted in the genesis. But we're moving away from allowing hardcoded class hash to maintain correctness.

The reason why we want to use the same version is to maintain compatibility and predictability across libs.

---

This doesn't introduce any breaking changes as the hardcoded class hash is the correct one for the new class.
  • Loading branch information
kariy authored Jan 24, 2025
1 parent 8c484fd commit 4ffbac0
Show file tree
Hide file tree
Showing 3 changed files with 5,767 additions and 7,027 deletions.
3,847 changes: 3,846 additions & 1 deletion crates/katana/contracts/build/default_account.json

Large diffs are not rendered by default.

Loading

0 comments on commit 4ffbac0

Please sign in to comment.