Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds missing features #5

Merged
merged 14 commits into from
Nov 7, 2023
Merged

Adds missing features #5

merged 14 commits into from
Nov 7, 2023

Conversation

Th0rgal
Copy link
Member

@Th0rgal Th0rgal commented Nov 7, 2023

This pull request marks the completion of the migration process for the identity contract to Cairo version 2. The migration was tested on the testnet with the deployment of a Cairo Zero version. Steps taken included minting a starknetid, modifying several of its fields, and executing a two-stage upgrade process. The first upgrade involved changing the proxy class hash target, followed by a call to finalize_migration(), and a subsequent upgrade to update the contract class hash. The data integrity was maintained: I still owned my identities and they still held their values. The finalize_migration function is designed to update the contract owner. Both upgrades proceeded without any issues, validating the migration strategy.

When this pull request is merged, I will work on adapting the indexers and upgrade the official goerli contract.

closes: lfglabs-dev/contract_cairo1#2

@Th0rgal Th0rgal requested a review from irisdv November 7, 2023 13:29
@Th0rgal Th0rgal added the 🔥 Ready for review This pull request needs a review label Nov 7, 2023
@Th0rgal Th0rgal changed the title Wip/cairo2 Cairo2 upgrade Nov 7, 2023
@Th0rgal Th0rgal changed the title Cairo2 upgrade Adds missing features Nov 7, 2023
@Th0rgal Th0rgal self-assigned this Nov 7, 2023
Copy link
Collaborator

@irisdv irisdv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

src/identity/internal.cairo Outdated Show resolved Hide resolved
@Th0rgal Th0rgal merged commit e86ebe5 into master Nov 7, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 Ready for review This pull request needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Starknet ID contract to Cairo 2
2 participants