Skip to content

Add SubjectMetadataController:addSubjectMetadata action#3733

Merged
FrederikBolding merged 3 commits into
mainfrom
fb/add-subject-metadata-action
Jan 5, 2024
Merged

Add SubjectMetadataController:addSubjectMetadata action#3733
FrederikBolding merged 3 commits into
mainfrom
fb/add-subject-metadata-action

Conversation

@FrederikBolding
Copy link
Copy Markdown
Member

Explanation

The SubjectMetadataController is currently being called with a direct reference to the controller in the extension client: https://github.com/MetaMask/metamask-extension/blob/develop/app/scripts/metamask-controller.js#L2367-L2373

To simplify this and make it easier for the SnapController to handle the population of metadata, this PR adds an exposed action for addSubjectMetadata.

Changelog

@metamask/permission-controller

  • Added: Add SubjectMetadataController:addSubjectMetadata action

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

@FrederikBolding FrederikBolding requested a review from a team as a code owner January 5, 2024 11:11
@FrederikBolding FrederikBolding changed the title Add :addSubjectMetadata action Add SubjectMetadataController:addSubjectMetadata action Jan 5, 2024
@FrederikBolding FrederikBolding merged commit 76ba100 into main Jan 5, 2024
@FrederikBolding FrederikBolding deleted the fb/add-subject-metadata-action branch January 5, 2024 11:23
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