From f98d4257a258ee9305ea19221c3fcb338312a1ec Mon Sep 17 00:00:00 2001 From: Ayush Tomar <41674634+ayushtom@users.noreply.github.com> Date: Sat, 16 Sep 2023 18:39:02 +0530 Subject: [PATCH] chore: update class hash in genesis config (#1079) --- CHANGELOG.md | 1 + configs/genesis-assets/genesis.json | 27 ++++++++++++++++++++++----- docs/genesis.md | 9 ++++----- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 833325d357..45077d2f8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Next release +- chore: add real class hash values for genesis config - feat: unification of the DA interface - feat: use resolver 2 for cargo in the workspace - upgrade: restructure code for rust latest version diff --git a/configs/genesis-assets/genesis.json b/configs/genesis-assets/genesis.json index 68f40c5680..a1381ba088 100644 --- a/configs/genesis-assets/genesis.json +++ b/configs/genesis-assets/genesis.json @@ -54,12 +54,29 @@ "version": 1 } ], - ["0x1000", { "path": "cairo-contracts/test.json", "version": 0 }], - ["0x10000", { "path": "cairo-contracts/ERC20.json", "version": 0 }], - ["0x20000", { "path": "cairo-contracts/ERC20.json", "version": 0 }], - ["0x80000", { "path": "cairo-contracts/ERC721.json", "version": 0 }], [ - "0x90000", + "0x05a2b92d9a36509a3d651e7df99144a4ad8301e2caf42465ee6ab0451ae91882", + { + "path": "cairo-contracts/test.json", + "version": 0 + } + ], + [ + "0x0372ee6669dc86563007245ed7343d5180b96221ce28f44408cff2898038dbd4", + { + "path": "cairo-contracts/ERC20.json", + "version": 0 + } + ], + [ + "0x077cc28ed3c661419fda16bf120fb81f1f8f28617f5543b05a86d63b0926bbf4", + { + "path": "cairo-contracts/ERC721.json", + "version": 0 + } + ], + [ + "0x07b3e05f48f0c69e4a65ce5e076a66271a527aff2c34ce1083ec6e1526997a69", { "path": "cairo-contracts/UniversalDeployer.json", "version": 0 diff --git a/docs/genesis.md b/docs/genesis.md index d2bfba576f..45954f15cd 100644 --- a/docs/genesis.md +++ b/docs/genesis.md @@ -38,11 +38,10 @@ The below defines all hardcoded values set in the geneses: | 0x07db5c2c2676c2a5bfc892ee4f596b49514e3056a0eee8ad125870b4fb1dd909 | Braavos account call aggregator class hash | | 0x3131fa018d520a037686ce3efddeab8f28895662f019ca3ca18a626650f7d1e | Proxy class hash | | 0x006280083f8c2a2db9f737320d5e3029b380e0e820fe24b8d312a6a34fdba0cd | Openzeppelin account class hash | -| 0x1000 | Test contract class hash | -| 0x10000 | ERC20 class hash | -| 0x20000 | ERC20 class hash | -| 0x80000 | ERC721 class hash | -| 0x90000 | Universal deployer class hash | +| 0x05a2b92d9a36509a3d651e7df99144a4ad8301e2caf42465ee6ab0451ae91882 | Test contract class hash | +| 0x0372ee6669dc86563007245ed7343d5180b96221ce28f44408cff2898038dbd4 | ERC20 class hash | +| 0x077cc28ed3c661419fda16bf120fb81f1f8f28617f5543b05a86d63b0926bbf4 | ERC721 class hash | +| 0x04569ffd48c2a3d455437c16dc843801fb896b1af845bc8bc7ba83ebc4358b7f | Universal deployer class hash |