You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: Remove useCaip25Permission feature flag and enable behaviour by default (#3413)
This removes the `useCaip25Permission` feature flag for the
`SnapController` and enables the CAIP-25 behaviour by default.
## Breaking changes
- The `SnapController` no longer accepts the `useCaip25Permission`
feature flag.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Removes the `useCaip25Permission` feature flag and always grants
`endowment:caip25` when a Snap requests `endowment:ethereum-provider`,
updating tests accordingly.
>
> - **SnapController**:
> - Remove `FeatureFlags.useCaip25Permission`.
> - Always add `endowment:caip25` (with `authorizedScopes` caveat based
on selected network) when `endowment:ethereum-provider` is requested in
`#getPermissionsToGrant`.
> - **Tests** (`SnapController.test.tsx`):
> - Update install/update tests to expect CAIP-25 without feature flag.
> - Remove tests covering the disabled-flag case.
> - Adjust test setup/options to drop
`featureFlags.useCaip25Permission`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
bd0c978. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
it('grants the `endowment:caip25` permission to a Snap with `endowment:ethereum-provider` if the `useCaip25Permission` feature flag is enabled',async()=>{
5993
+
it('grants the `endowment:caip25` permission to a Snap with `endowment:ethereum-provider`',async()=>{
it('grants the `endowment:caip25` permission when updating a Snap with `endowment:ethereum-provider` if the `useCaip25Permission` feature flag is enabled',async()=>{
6072
+
it('grants the `endowment:caip25` permission when updating a Snap with `endowment:ethereum-provider`',async()=>{
it('does not grant the `endowment:caip25` permission to a Snap with `endowment:ethereum-provider` if the `useCaip25Permission` feature flag is disabled',async()=>{
0 commit comments