Skip to content

Revert SNIP-12 code to be compatible with starknet.js #667

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

Merged
merged 6 commits into from
Apr 2, 2025

Conversation

thiagodeev
Copy link
Collaborator

@thiagodeev thiagodeev commented Feb 19, 2025

Since the bug found in starknet.js has not yet been fixed (and probably won't be), we'll revert the correct code to the "wrong" way to be compatible with other libraries and dapps until they fix this.

A version called v0.8.0-snip12 will be created without this PR for backward compatibility, giving users time to migrate to the default implementation (this one) that will focus on compatibility with other libraries.

Ref: starknet-io/starknet.js#1278
Ref: starknet-io/starknet.js#1292
Starknet.js testcases: https://github.com/starknet-io/starknet.js/blob/e77fcc78b4e14bd0d8beb207451e998ebe6331a4/__tests__/utils/typedData.test.ts

Also, it adds new test cases regarding nested enums.

@thiagodeev thiagodeev mentioned this pull request Mar 7, 2025
56 tasks
@thiagodeev thiagodeev changed the title Revert code to be compatible with starknet.js Revert SNIP-12 code to be compatible with starknet.js Mar 31, 2025
@rianhughes rianhughes self-requested a review April 1, 2025 14:41
@thiagodeev thiagodeev merged commit a8227aa into main Apr 2, 2025
8 checks passed
@thiagodeev thiagodeev deleted the thiagodeev/fix-snip_12 branch April 2, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants