Skip to content

assets-controllers: Remove AllowedActions, AllowedEvents - #4344

Merged
mcmire merged 2 commits into
mainfrom
remove-allowed-events-and-actions-for-nft-detection-controller
May 31, 2024
Merged

assets-controllers: Remove AllowedActions, AllowedEvents#4344
mcmire merged 2 commits into
mainfrom
remove-allowed-events-and-actions-for-nft-detection-controller

Conversation

@mcmire

Copy link
Copy Markdown
Collaborator

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 teamMay 30, 2024 22:58
} from './NftController';
export { getDefaultNftControllerState, NftController } from './NftController';
export * from './NftDetectionController';
export type {

Copy link
Copy Markdown
CollaboratorAuthor

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.

@bergeronbergeron left a comment

Copy link
Copy Markdown
Contributor

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 mainMay 31, 2024
@mcmire
mcmire deleted the remove-allowed-events-and-actions-for-nft-detection-controller branch May 31, 2024 03:41
Sign up for freeto 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

@mcmire@bergeron