Skip to content
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

assets-controllers: Remove AllowedActions, AllowedEvents #4344

Merged

Conversation

mcmire
Copy link
Contributor

@mcmire mcmire commented May 30, 2024

Explanation

These types were mistakenly exported in a previous commit when converting NftDetectionController to BaseController v2. They can still be exports in NftDetectionController.ts, but just not be exports from the perspective of the whole assets-controllers package. This commit takes these exports away by replacing the * export in index.ts with explicit names and ensures not to include the two aforementioned types.

References

This is a followup to #4312.

Changelog

The changelog in #4342 already does not mention the existence of these two exports, so nothing should need to be done.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

These types were mistakenly exported in a previous commit when
converting NftDetectionController to BaseController v2. They can still
be exports in `NftDetectionController.ts`, but just not be exports from
the perspective of the whole `assets-controllers` package. This commit
takes these exports away by replacing the `*` export in `index.ts` with
explicit names and ensures not to include the two aforementioned types.
@mcmire mcmire requested a review from a team as a code owner May 30, 2024 22:58
@@ -13,7 +13,30 @@ export type {
NftMetadata,
} from './NftController';
export { getDefaultNftControllerState, NftController } from './NftController';
export * from './NftDetectionController';
export type {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To review this, look through NftDetectionController.ts and make sure that we are listing all exports there minus AllowedActions and AllowedEvents.

Copy link
Contributor

@bergeron bergeron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I see everything exported in NftDetectionController.ts included here

@mcmire mcmire merged commit f2823aa into main May 31, 2024
147 checks passed
@mcmire mcmire deleted the remove-allowed-events-and-actions-for-nft-detection-controller branch May 31, 2024 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants