Commit f3e64c7
authored
feat!: Remove
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 -->useCaip25Permission feature flag and enable behaviour by default (#3413)1 parent 8571a4d commit f3e64c7
File tree
2 files changed
+3
-81
lines changed- packages/snaps-controllers/src/snaps
2 files changed
+3
-81
lines changedLines changed: 2 additions & 76 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5990 | 5990 | | |
5991 | 5991 | | |
5992 | 5992 | | |
5993 | | - | |
| 5993 | + | |
5994 | 5994 | | |
5995 | 5995 | | |
5996 | 5996 | | |
| |||
6026 | 6026 | | |
6027 | 6027 | | |
6028 | 6028 | | |
6029 | | - | |
6030 | | - | |
6031 | | - | |
6032 | 6029 | | |
6033 | 6030 | | |
6034 | 6031 | | |
| |||
6072 | 6069 | | |
6073 | 6070 | | |
6074 | 6071 | | |
6075 | | - | |
| 6072 | + | |
6076 | 6073 | | |
6077 | 6074 | | |
6078 | 6075 | | |
| |||
6132 | 6129 | | |
6133 | 6130 | | |
6134 | 6131 | | |
6135 | | - | |
6136 | | - | |
6137 | | - | |
6138 | 6132 | | |
6139 | 6133 | | |
6140 | 6134 | | |
| |||
6205 | 6199 | | |
6206 | 6200 | | |
6207 | 6201 | | |
6208 | | - | |
6209 | | - | |
6210 | | - | |
6211 | | - | |
6212 | | - | |
6213 | | - | |
6214 | | - | |
6215 | | - | |
6216 | | - | |
6217 | | - | |
6218 | | - | |
6219 | | - | |
6220 | | - | |
6221 | | - | |
6222 | | - | |
6223 | | - | |
6224 | | - | |
6225 | | - | |
6226 | | - | |
6227 | | - | |
6228 | | - | |
6229 | | - | |
6230 | | - | |
6231 | | - | |
6232 | | - | |
6233 | | - | |
6234 | | - | |
6235 | | - | |
6236 | | - | |
6237 | | - | |
6238 | | - | |
6239 | | - | |
6240 | | - | |
6241 | | - | |
6242 | | - | |
6243 | | - | |
6244 | | - | |
6245 | | - | |
6246 | | - | |
6247 | | - | |
6248 | | - | |
6249 | | - | |
6250 | | - | |
6251 | | - | |
6252 | | - | |
6253 | | - | |
6254 | | - | |
6255 | | - | |
6256 | | - | |
6257 | | - | |
6258 | | - | |
6259 | | - | |
6260 | | - | |
6261 | | - | |
6262 | | - | |
6263 | | - | |
6264 | | - | |
6265 | | - | |
6266 | | - | |
6267 | | - | |
6268 | | - | |
6269 | | - | |
6270 | | - | |
6271 | | - | |
6272 | | - | |
6273 | 6202 | | |
6274 | 6203 | | |
6275 | 6204 | | |
| |||
6305 | 6234 | | |
6306 | 6235 | | |
6307 | 6236 | | |
6308 | | - | |
6309 | | - | |
6310 | | - | |
6311 | 6237 | | |
6312 | 6238 | | |
6313 | 6239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
711 | 710 | | |
712 | 711 | | |
713 | 712 | | |
| |||
4414 | 4413 | | |
4415 | 4414 | | |
4416 | 4415 | | |
4417 | | - | |
4418 | | - | |
4419 | | - | |
4420 | | - | |
| 4416 | + | |
4421 | 4417 | | |
4422 | 4418 | | |
4423 | 4419 | | |
| |||
0 commit comments