Skip to content

Commit 1fdfa7c

Browse files
authored
Merge pull request #111 from OpenZeppelin/fix/cairo-3.x-links
Cairo: fix 3.x links
2 parents ce54184 + 37455fd commit 1fdfa7c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

content/contracts-cairo/3.x/guides/deploy-udc.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ under one important assumption: **the declared UDC class hash MUST be the same a
3333
Different compiler versions may produce different class hashes for the same contract, so you need to make
3434
sure you are using the same compiler version to build the UDC class (and the release profile).
3535

36-
The latest version of the UDC available in the `openzeppelin_presets` package was compiled with **Cairo v2.13.1** (release profile) and the resulting class hash is `0x01b2df6d8861670d4a8ca4670433b2418d78169c2947f46dc614e69f333745c8`.
36+
The latest UDC version available in the `openzeppelin_presets` package was compiled from library version `v2.0.0` using **Cairo v2.11.4** (release profile). The resulting class hash is `0x01b2df6d8861670d4a8ca4670433b2418d78169c2947f46dc614e69f333745c8`.
3737

3838
<Callout type='warn'>
3939
If you are using a different compiler version, you need to make sure the class hash is the same as the one above in order to keep the same address across all networks.
@@ -88,7 +88,7 @@ The bootstrapper contract is a simple contract that declares the UDC and allows
8888
You can find a reference implementation below:
8989

9090
<Callout>
91-
This reference implementation targets Cairo v2.13.1. If you are using a different version of Cairo, you may need to update the code to match your compiler version.
91+
This reference implementation targets Cairo v2.11.4. If you are using a different version of Cairo, you may need to update the code to match your compiler version.
9292
</Callout>
9393

9494
```rust

content/contracts-cairo/3.x/utils/constants.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const OPENZEPPELIN_INTERFACES_VERSION = "3.0.0";
2-
export const OPENZEPPELIN_UTILS_VERSION = "3.0.0";
1+
export const OPENZEPPELIN_INTERFACES_VERSION = "2.1.0";
2+
export const OPENZEPPELIN_UTILS_VERSION = "2.1.0";
33
export const UMBRELLA_VERSION = "3.0.0";
44
export const CLASS_HASH_SCARB_VERSION = "2.13.1";
55

@@ -15,7 +15,7 @@ export const CLASS_HASHES = {
1515
EthAccountUpgradeableClassHash:
1616
"0x000b5bcc16b8b0d86c24996e22206f6071bb8d7307837a02720f0ce2fa1b3d7c",
1717
UniversalDeployerClassHash:
18-
"0x01b2df6d8861670d4a8ca4670433b2418d78169c2947f46dc614e69f333745c8",
18+
"0x01724ff2f76fcddb8f4079d35783655e6d61935a281425721e98607cc480ef56",
1919
VestingWalletClassHash:
2020
"0x00540c7f907539e1a283318fb3da16f1bf9d9e60ad10c20d0557a0185043b08f",
2121
};

0 commit comments

Comments
 (0)