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

Issue #29847: Removed and edited the code for useExternalServices check for isDecodeSignatureRequestEnabled #29909

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rounakkraaj-1744
Copy link

@rounakkraaj-1744 rounakkraaj-1744 commented Jan 26, 2025

Description

This pull request removes the useExternalServices check from the isDecodeSignatureRequestEnabled function in the metamask-controller.

Reason for the change

The decoder API is an internal service and does not interact with any external services. As a result, the useExternalServices check is unnecessary.

improvement/solution?

  • Updated the isDecodeSignatureRequestEnabled function to only check the useTransactionSimulations state.
  • This ensures the function logic aligns with the intended design, improving maintainability and reducing unnecessary checks.

Open in GitHub Codespaces

Related issues

Fixes: #29847

Manual testing steps

  1. Open MetaMask and navigate to the relevant settings page.
  2. Enable/disable Transaction Simulations in the preferences.
  3. Observe if the decoder functionality behaves as expected.

Screenshots/Recordings

Before

Screenshot 2025-01-23 221420

After

Screenshot 2025-01-23 221336

Pre-merge author checklist

Pre-merge reviewer checklist

  • [ x ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • [ x ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

…ices check for isDecodeSignatureRequestEnabled
Copy link
Contributor

CLA Signature Action:

Thank you for your submission, we really appreciate it. We ask that you read and sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just by adding a comment to this pull request with this exact sentence:

I have read the CLA Document and I hereby sign the CLA

By commenting with the above message you are agreeing to the terms of the CLA. Your account will be recorded as agreeing to our CLA so you don't need to sign it again for future contributions to this repository.

0 out of 1 committers have signed the CLA.
@rounakkraaj-1744

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove useExternalServices check for isDecodeSignatureRequestEnabled
2 participants