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

feat: Upgrade signature Controller to v14 #9651

Merged
merged 9 commits into from
May 22, 2024

Conversation

MarioAslau
Copy link
Contributor

@MarioAslau MarioAslau commented May 16, 2024

Description

Update Signature Controller to v^14

Changelog: https://github.com/MetaMask/core/blob/%40metamask/signature-controller%4016.0.0/packages/signature-controller/CHANGELOG.md

These two peer dependencies:

These two controllers are being used inside Signature Controller to import types.
These types have not been changed during the latest upgrades to these controllers, thus not being a breaking changes for Signature Controller V14.

Related issues

Manual testing steps

  1. Turn on MetaMask and log into wallet
  2. Go to Settings > Advanced > Turn on Eth_sign requests
  3. Go to mobile browser and access https://metamask.github.io/test-dapp/
  4. Use MetaMask wallet and Connect Wallet
  5. Scroll down and test signing in: Eth Sign, Perosnal Sign, Sign Typed Data, Sign Typed Data V3, Sign Typed Data V4, Sign Permit, Sign in with Ethereum
  6. Verify each of the singings where the button is present

Screenshots/Recordings

Before

After

Recording.11.mp4

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've completed the PR template to the best of my ability
  • I’ve included tests if applicable
  • I’ve documented my code using JSDoc format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • 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.

tommasini and others added 5 commits May 15, 2024 20:03
…er v9, phishing controller v9, addressed ts errors on engine file and added ts expect errors for the controllers that need to be updated due to base controller version mismatch, also fix ts issue on rpcmethod middle ware
@MarioAslau MarioAslau requested a review from a team as a code owner May 16, 2024 14:08
@MarioAslau MarioAslau requested a review from tommasini May 16, 2024 14:08
@MarioAslau MarioAslau self-assigned this May 16, 2024
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@MarioAslau MarioAslau added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) team-mobile-platform labels May 16, 2024
Copy link

socket-security bot commented May 16, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] Transitive: filesystem +26 3.79 MB metamaskbot

🚮 Removed packages: npm/@metamask/[email protected]

View full report↗︎

Copy link

socket-security bot commented May 16, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@MarioAslau MarioAslau assigned tommasini and unassigned MarioAslau May 22, 2024
Base automatically changed from update/1781-base-controller-v5 to main May 22, 2024 13:22
@MarioAslau MarioAslau added the Run Smoke E2E Triggers smoke e2e on Bitrise label May 22, 2024
Copy link
Contributor

github-actions bot commented May 22, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 13e80c2
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/e32ea8a8-6cea-4fa6-a63d-bff457fabf6d

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@MarioAslau MarioAslau assigned MarioAslau and unassigned tommasini May 22, 2024
@MarioAslau MarioAslau added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels May 22, 2024
Copy link
Contributor

github-actions bot commented May 22, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: 4455e43
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/e15a50dd-7b88-4b51-8e8f-2578617e9eb2

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link

sonarcloud bot commented May 22, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link
Contributor

@tommasini tommasini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Awesome job!
If you can just add the manual steps and a recording of the behaviour of signing

@MarioAslau MarioAslau added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels May 22, 2024
@MarioAslau MarioAslau merged commit 557499a into main May 22, 2024
43 checks passed
@MarioAslau MarioAslau deleted the feat/upgrade-signatureController-v14 branch May 22, 2024 17:57
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label May 22, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2024
@metamaskbot metamaskbot added the release-7.24.0 Issue or pull request that will be included in release 7.24.0 label May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.24.0 Issue or pull request that will be included in release 7.24.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants