feat(institutional-snap-controller): Institutional Snap transaction handling #30180
Merged
Conversation
|
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
b2c29d7 to
dae6d7b
Compare
…I-XXX-insto-snap-2
…I-XXX-insto-snap-2
Collaborator
✨ Files requiring CODEOWNER review ✨✅ @MetaMask/confirmations
|
Collaborator
Builds ready [9ad3b9b]
UI Startup Metrics (1221 ± 58 ms)
|
matthewwalsh0
previously approved these changes
Apr 9, 2025
vinistevam
previously approved these changes
Apr 9, 2025
…xtension into MMI-XXX-insto-snap-2
Collaborator
Builds ready [7925f3d]
UI Startup Metrics (1219 ± 54 ms)
|
Collaborator
Builds ready [9f537d4]
UI Startup Metrics (1237 ± 60 ms)
|
matthewwalsh0
approved these changes
Apr 9, 2025
PatrykLucka
approved these changes
Apr 9, 2025
Collaborator
Builds ready [25335e1]
UI Startup Metrics (1241 ± 56 ms)
|
vinistevam
approved these changes
Apr 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Explanation
Relates to MetaMask/core#5045
References
Institutional Snap RAPID
We use the existing beforePublish hook in metamask-controller to read this
custodianPublishesTransactionoption (set at account level by the institutional snap and tell the transaction controller not to publish based on it. As a side effect, this hook also sets the hash of the transaction and marks it as submitted.Additionally, custodians can change some transaction parameters. In order to update the params before they are compared with the signature, the InstitutionalSnapController fetches these parameters from the snap.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Screen.Recording.2025-04-09.at.14.41.43.mov
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist