Skip to content

Update blockaid dependency and ppom.js#21436

Merged
jpuri merged 5 commits intodevelopfrom
blockaid_update
Dec 6, 2023
Merged

Update blockaid dependency and ppom.js#21436
jpuri merged 5 commits intodevelopfrom
blockaid_update

Conversation

@jpuri
Copy link
Copy Markdown
Contributor

@jpuri jpuri commented Oct 18, 2023

Description

The PR Updated @blockaid/ppom-release dependency and also updates ppom.js

Manual testing steps

_1. Run extension
_2. Go to test dapp and send a malicious confirmation request
_3. Ensure that confirmation page shows blockaid error

Related issues

Fixes #???

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained:
    • What problem this PR is solving.
    • How this problem was solved.
    • How reviewers can test my changes.
  • I’ve indicated what issue this PR is linked to: Fixes #???
  • I’ve included tests if applicable.
  • I’ve documented any added code.
  • I’ve applied the right labels on the PR (see labeling guidelines).
  • I’ve properly set the pull request status:
    • In case it's not yet "ready for review", I've set it to "draft".
    • In case it's "ready for review", I've changed it from "draft" to "non-draft".

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.

@jpuri jpuri added team-confirmations-secure-ux-deprecated DEPRECATED: please use "team-confirmations" instead DO-NOT-MERGE Pull requests that should not be merged labels Oct 18, 2023
@github-actions
Copy link
Copy Markdown
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.

@jpuri jpuri added team-confirmations-secure-ux-PR PRs from the confirmations team and removed team-confirmations-secure-ux-deprecated DEPRECATED: please use "team-confirmations" instead labels Oct 20, 2023
@bschorchit bschorchit added the team-confirmations-secure-ux-deprecated DEPRECATED: please use "team-confirmations" instead label Nov 17, 2023
@segun segun mentioned this pull request Nov 29, 2023
13 tasks
@bschorchit bschorchit removed the DO-NOT-MERGE Pull requests that should not be merged label Nov 29, 2023
@bschorchit
Copy link
Copy Markdown
Contributor

This has been unblocked with the conclusion of the security audit ✅

@jpuri jpuri marked this pull request as ready for review November 29, 2023 15:36
@jpuri jpuri requested a review from a team as a code owner November 29, 2023 15:36
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 30, 2023

Codecov Report

Attention: 344 lines in your changes are missing coverage. Please review.

Comparison is base (b47a414) 67.64% compared to head (814b366) 67.71%.

Files Patch % Lines
app/scripts/lib/ppom/ppom.js 4.71% 344 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #21436      +/-   ##
===========================================
+ Coverage    67.64%   67.71%   +0.07%     
===========================================
  Files         1052     1052              
  Lines        40640    40598      -42     
  Branches     10919    10917       -2     
===========================================
- Hits         27488    27487       -1     
+ Misses       13152    13111      -41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

blackdevelopa
blackdevelopa previously approved these changes Nov 30, 2023
segun
segun previously approved these changes Dec 1, 2023
@seaona seaona dismissed stale reviews from segun and blackdevelopa via 854a2f1 December 4, 2023 07:15
})
.thenCallback(() => {
return {
statusCode: 500,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

For getting the Failed Validation warning with the new ppom version, we need a failed response from the RPC.
Before, only using an account with 0 balance was sufficient, but now, this situation won't trigger the Failed Validation, since the transaction will revert - so it's considered Benign and no warning is shown. That's why the test was failing

@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [854a2f1]
Page Load Metrics (1192 ± 69 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint85147115189
domContentLoaded94922105
load8341340119214569
domInteractive94922105
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -13 Bytes (-0.00%)
  • ui: 0 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@jpuri jpuri merged commit 1e60159 into develop Dec 6, 2023
@jpuri jpuri deleted the blockaid_update branch December 6, 2023 10:50
@github-actions github-actions bot locked and limited conversation to collaborators Dec 6, 2023
@metamaskbot metamaskbot added the release-11.8.0 Issue or pull request that will be included in release 11.8.0 label Dec 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.8.0 Issue or pull request that will be included in release 11.8.0 team-confirmations-secure-ux-deprecated DEPRECATED: please use "team-confirmations" instead team-confirmations-secure-ux-PR PRs from the confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants