-
Notifications
You must be signed in to change notification settings - Fork 5k
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
refactor: connection Flow to use CAIP25 Permission format #29824
base: main
Are you sure you want to change the base?
Conversation
ui/components/multichain/pages/review-permissions-page/site-cell/site-cell.tsx
Outdated
Show resolved
Hide resolved
…n request is cancelled
…ons implementation to be fully caip25 compliant
5218ea4
to
f771a58
Compare
@@ -47,6 +53,7 @@ export default class PermissionPageContainer extends Component { | |||
}), | |||
history: PropTypes.object.isRequired, | |||
connectPath: PropTypes.string.isRequired, | |||
defaultAccount: PropTypes.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.
sorry, nit. This should be isRequired. There should always be a value we can use for this
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.
resolved in 8d5968e
@@ -55,6 +62,7 @@ export default class PermissionPageContainer extends Component { | |||
selectedAccounts: [], | |||
allAccountsSelected: false, | |||
currentPermissions: {}, | |||
defaultAccount: '', |
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.
can get rid of this default given the defaultAccount value must be provided
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.
resolved in 8d5968e
* @param hexChainIds - The list of permitted chains. | ||
* @returns The granted permissions with the target name of the {@link Caip25EndowmentPermissionName}. | ||
*/ | ||
export function parseCaip25PermissionsResponse( |
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.
[nit] - I think parse
maybe is a confusing word for this.
maybe just keep it pretty generic/straightforward:
export function parseCaip25PermissionsResponse( | |
export function getApprovedSessionsScopes( |
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.
resolved in ecad6ee
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
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
…allet_switchEthereumNetwork
…ding wallet_switchEthereumChain request
Builds ready [ae0bdb4]
Page Load Metrics (1747 ± 70 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [bfccd6e]
Page Load Metrics (1666 ± 78 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Screen.Recording.2025-01-23.at.17.18.17.mov
NOTE: Don't mind different screens in the UI, this vid is outdated and all UI screens are same as
main
branchBefore
After
Pre-merge author checklist
Pre-merge reviewer checklist