-
-
Notifications
You must be signed in to change notification settings - Fork 258
Release 161.0.0 #4413
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
Release 161.0.0 #4413
Changes from 1 commit
233b705
25a6c51
7beeba9
9f61b2b
dc93145
1215152
b57a7f8
ec719c8
e631ca5
dc2a863
43da8a8
c3d89d6
009d5b8
ddeef9d
a7710db
faa8750
b7fdc16
b998da8
4cd1d52
8b7ae3d
451d356
b6bc2d9
18a8a48
13d91ae
c9a6139
37bc182
f71d036
374c25b
83c5a8f
f273f6e
347751f
16aed63
f15f107
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Co-authored-by: Jongsun Suh <[email protected]>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,17 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 | |||||
|
|
||||||
| ### Added | ||||||
|
|
||||||
| - Added `Mutex` lock in the `updateNftMetadata` function ([#4325](https://github.com/MetaMask/core/pull/4325)) | ||||||
| - **BREAKING:** Add `messenger` as a constructor option for `AccountTrackerController` ([#4225](https://github.com/MetaMask/core/pull/4225)) | ||||||
| (https://github.com/MetaMask/core/pull/4225)) | ||||||
| - Add `AccountTrackerControllerMessenger` type | ||||||
| - `NftController` now allows `AccountsController:getAccount`, `AccountsController:getSelectedAccount` as messenger actions and subscribes to the `AccountsController:selectedEvmAccountChange` messenger event ([#4221](https://github.com/MetaMask/core/pull/4221)) | ||||||
|
||||||
| - `NftController` now allows `AccountsController:getAccount`, `AccountsController:getSelectedAccount` as messenger actions and subscribes to the `AccountsController:selectedEvmAccountChange` messenger event ([#4221](https://github.com/MetaMask/core/pull/4221)) | |
| - **BREAKING:** The `NftController` messenger must now allow `AccountsController:getAccount` and `AccountsController:getSelectedAccount` as messenger actions and `AccountsController:selectedEvmAccountChange` as a messenger event ([#4221](https://github.com/MetaMask/core/pull/4221)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially we had that BREAKING prefix yes, but after discussing with @MajorLift, I understood this was not considered a "real" breaking changes. Anyway, I do agree with your suggestion, so let's re-add it. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with Elliot's description of the desired behavior, but it doesn't appear that we have type or runtime error guardrails in controller constructor for subtype messengers. Passing in messengers with incomplete or never allowlists into controller constructors seems to work fine.
Runtime errors are thrown, but only when call and subscribe/unsubscribe (or more accurately #isAllowedAction, #isAllowedEvent) is being invoked for the omitted actions/events.
I'll experiment with this a bit more in the test files since I might just be doing something wrong.
Edit: Created a base-controller ticket for this #4414
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah looks like this belongs under line 14.
Leaving this comment as reference to be fixed by a future PR covering
AccountTrackerController.