madara icon indicating copy to clipboard operation
madara copied to clipboard

dev: update correct UDC class hash in genesis config

Open ayushtom opened this issue 1 year ago • 4 comments

Problem Description

Current the Universal Deployer Contract with contract address - 0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf

has a class hash which is taken from starkscan here

This classhash isn't generated by us and might affect madara when we connect with other tools where this value needs to be consistent.

Your mission is to generate this class hash from starknet cli using the same compiler version with which this contract has been compiled and update this in the genesis.json and anywhere in the rust code and docs where this value seems to be hardcoded.

ayushtom avatar Sep 17 '23 11:09 ayushtom

So generate a new contract instance with the class hash?

dbejarano820 avatar Sep 17 '23 16:09 dbejarano820

I think you can just recompile and get the class hash. New instance shouldn't be necessary but yea that works too! Make sure you use starknet-cli version 10.0 to do this otherwise you will get different class hash

ayushtom avatar Sep 18 '23 05:09 ayushtom

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Oct 19 '23 00:10 github-actions[bot]

#951 should also fix this one

tdelabro avatar May 06 '24 09:05 tdelabro

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!

github-actions[bot] avatar Jun 06 '24 00:06 github-actions[bot]

repository archived in favor of https://github.com/madara-alliance/madara

tdelabro avatar Aug 02 '24 18:08 tdelabro