Skip to content

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 May 30, 2024 22:58
} 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
@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.

3 participants