-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
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")]) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
No description provided.