-
Notifications
You must be signed in to change notification settings - Fork 273
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
Add wallet_switchStarknetChain
request method
#656
Conversation
| { | ||
type: "APPROVE_REQUEST_SWITCH_CUSTOM_NETWORK" | ||
data: { actionHash: string } | ||
} |
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 file is getting big - could be split up into smaller features files (for another PR)
packages/extension/src/ui/features/actions/AddNetworkScreen.tsx
Outdated
Show resolved
Hide resolved
payload: { | ||
id: string | ||
name: string | ||
chainId: string // A 0x-prefixed hexadecimal string |
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.
wondering if we could define a specific typescript type for the 0x-prefixed hex strings to check that is doesn't accept just any string, just a thought
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.
Currently we shouldn't do it because chainId for Mainnet is "SN_MAIN" and Goerli it's "SN_GOERLI". Let's see what other custom network implements. They might not go with hexadecimal standards.
No description provided.