MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
711 stars 546 forks source link

feat: add feature flag to disable platform #2434

Closed FrederikBolding closed 1 month ago

FrederikBolding commented 1 month ago

Add getFeatureFlags constructor argument that can return dynamic feature flags at runtime, use the feature flag to assert whether the Snaps platform is allowed to run.

Closes https://github.com/MetaMask/MetaMask-planning/issues/2556

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.30%. Comparing base (10a9f79) to head (04ad368).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2434 +/- ## ======================================= Coverage 94.30% 94.30% ======================================= Files 437 437 Lines 8987 8997 +10 Branches 1378 1379 +1 ======================================= + Hits 8475 8485 +10 Misses 512 512 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.