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

fix: update starknetkit to be compatible with starknet-react v3 #110

Merged
merged 7 commits into from
Jul 3, 2024

Conversation

bluecco
Copy link
Contributor

@bluecco bluecco commented Jul 1, 2024

No description provided.

@bluecco bluecco marked this pull request as draft July 1, 2024 10:15
@bluecco
Copy link
Contributor Author

bluecco commented Jul 1, 2024

waiting for #104 to be merged for argent mobile compatibility

@@ -116,7 +116,7 @@ export const StarknetMethodArgumentsSchemas = {
z
.object({
starknetVersion: z
.union([z.literal("v3"), z.literal("v4")])
.union([z.literal("v3"), z.literal("v4"), z.literal("v5")])
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need v3 here?

Copy link
Contributor Author

@bluecco bluecco Jul 2, 2024

Choose a reason for hiding this comment

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

kept it for backward compatibility
but with rpc wallet snip and this version of starknetkit it could be probably removed (since with this version the old methods -- like enable -- won't be used anymore)

Copy link
Contributor

Choose a reason for hiding this comment

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

don't we need v6 as well here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is related to the enable function only
with v6

this.request({
        type: "wallet_requestAccounts",
      })

will be used

So probably it would makes sense to remove this part?
@dhruvkelawala @vladutjs

Copy link
Contributor

@dhruvkelawala dhruvkelawala left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

@bluecco bluecco marked this pull request as ready for review July 3, 2024 10:17
@bluecco bluecco merged commit 88ec99c into develop Jul 3, 2024
1 check passed
@bluecco bluecco deleted the SK-8 branch July 3, 2024 10:32
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.

3 participants