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

refactor: accept SignController approval request from frontend #6600

Merged
merged 32 commits into from
Jul 25, 2023

Conversation

OGPoyraz
Copy link
Member

@OGPoyraz OGPoyraz commented Jun 14, 2023

Development & PR Process

  1. Follow MetaMask Mobile Coding Standards
  2. Add release-xx label to identify the PR slated for a upcoming release (will be used in release discussion)
  3. Add needs-dev-review label when work is completed
  4. Add needs-qa label when dev review is completed
  5. Add QA Passed label when QA has signed off

Description

This PR aims to remove the sign and cancel methods usage from SignatureController and use promisified middlewares named newUnsignedXMessage methods.

Patched PR detail could be seen here: MetaMask/core#1377 (It's merged now)

Manual Testing Steps

  • Go to test-dapp
  • Use any sign action, or cancel sign action without any issues.

Recordings
sign_msgs_tests.webm

Bitrise E2E pipeline
https://app.bitrise.io/build/30379484-ceba-4d17-b1a1-97552d5fac68
(pr_smoke_e2e_pipeline) https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/16a00d66-5006-4204-b682-1337eb051e49
July 20th - https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8969daf3-08ee-4e71-8990-2dc5f5ce2eeb

Issue
https://github.com/MetaMask/mobile-planning/issues/885

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable (e2e tests are already covering this signatures)
  • Any added code is fully documented

@OGPoyraz OGPoyraz force-pushed the signature-controller-promise-refactor branch 3 times, most recently from 79b1257 to 84a9c28 Compare June 15, 2023 10:53
@OGPoyraz OGPoyraz changed the title use approval accept/reject in ui for signatures Accept SignController approval request from frontend Jun 15, 2023
@OGPoyraz OGPoyraz marked this pull request as ready for review June 15, 2023 11:12
@OGPoyraz OGPoyraz requested a review from a team as a code owner June 15, 2023 11:12
@OGPoyraz OGPoyraz force-pushed the signature-controller-promise-refactor branch 7 times, most recently from b628517 to 48cbc40 Compare June 16, 2023 05:13
app/core/Engine.ts Outdated Show resolved Hide resolved
app/core/Engine.ts Outdated Show resolved Hide resolved
app/core/Engine.ts Outdated Show resolved Hide resolved
@OGPoyraz OGPoyraz force-pushed the signature-controller-promise-refactor branch 9 times, most recently from 97526ce to 75f2eed Compare June 26, 2023 07:48
@sonarcloud
Copy link

sonarcloud bot commented Jul 25, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

75.0% 75.0% Coverage
0.0% 0.0% Duplication

@vinistevam vinistevam merged commit 1f2c424 into main Jul 25, 2023
11 checks passed
@vinistevam vinistevam deleted the signature-controller-promise-refactor branch July 25, 2023 16:54
@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2023
@vinistevam vinistevam added team-confirmations-system DEPRECATED: please use "team-confirmations" label instead No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. labels Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed/E2E Only Apply this label when your PR does not need any QA effort. release-7.5.0 team-confirmations-system DEPRECATED: please use "team-confirmations" label instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants