Skip to content
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

Add isDecodeSignatureRequestEnabled to SignatureController constructor #4903

Merged
merged 6 commits into from
Nov 8, 2024

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Nov 7, 2024

Explanation

pass getFeatureFlags function to SignatureController constructor so that we can disable decoding depending on user preferences: useExternalServices and useTransactionSimulations

References

Changelog

@metamask/signature-controller

  • Added: Pass getFeatureFlags function to SignatureController constructor so that we can disable decoding depending on user references.

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
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@jpuri jpuri requested a review from a team as a code owner November 7, 2024 13:13
@jpuri jpuri enabled auto-merge (squash) November 7, 2024 13:42
@jpuri jpuri merged commit 0fc0396 into main Nov 8, 2024
120 checks passed
@jpuri jpuri deleted the decoding_api_flag branch November 8, 2024 12:27
@jpuri jpuri changed the title Add getFeatureFlags to SignatureController to be able to pass disable DecodingApi flag Add isDecodeSignatureRequestEnabled to SignatureController constructor Nov 8, 2024
@jpuri jpuri mentioned this pull request Nov 8, 2024
4 tasks
jpuri added a commit that referenced this pull request Nov 8, 2024
## Explanation

Signature controller update that add decoding api integration.

## References

* Related to
[#67890](MetaMask/MetaMask-planning#3553)

## Changelog

### `@metamask/signature-controller`

- **ADDED**: Add isDecodeSignatureRequestEnabled to SignatureController
constructor to be able to check if decoding api should be invoked for
the signature ([#4903](#4903))
- **ADDED**: Integrating signature decoding api
([#4855](#4855))


## Checklist

- [X] I've updated the test suite for new or updated code as appropriate
- [X] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [X] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [X] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
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