Skip to content

Conversation

segun
Copy link
Contributor

@segun segun commented Jan 23, 2024

Description

This PR depends on

  1. Olu/enable ppom on more networks ppom-validator#90

Once these PRs are merged, and for the Controller PR, a new controller version released, we'll be able to support additional networks on extension and we should enable the feature on them.

The following networks are supported by this change.

Ethereum Mainnet (already done)
BNB chain
Polygon
Arbitrum
Optimism
Avalanche
Linea

NOTE: So that we can test this branch, we made some changes in the package.json, and ppom.js once the above 2 dependency PRs are merged, we should revert the changes and especially in the change below, we should be using the deployed version of PPOM Validator.

    "@metamask/ppom-validator": "MetaMask/ppom-validator#olu/send-ppom-on-more-networks",

Related issues

Fixes: #1692
Blocked By: #21436, #90

Manual testing steps

  1. Launch MM
  2. Change network to any of the chains above other than Mainnet
  3. Open this modified testdapp
  4. Connect MM and click on any of the PPOM buttons
  5. You should not see any blockaid banner
  6. Checkout this branch, build and restart MM
  7. Repeat 2-4
  8. You should see blockaid banner when you click on any of the PPOM buttons

Screenshots/Recordings

Before

After

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • I've clearly explained what problem this PR is solving and how it is solved.
  • I've linked related issues
  • I've included manual testing steps
  • I've included screenshots/recordings if applicable
  • 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.
  • 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.

@segun segun added team-confirmations-secure-ux-PR PRs from the confirmations team needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Jan 23, 2024
@segun segun self-assigned this Jan 23, 2024
@segun segun requested a review from a team as a code owner January 23, 2024 08:11
@segun segun marked this pull request as draft January 23, 2024 08:12
@github-actions
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.

@socket-security
Copy link

socket-security bot commented Jan 23, 2024

@socket-security
Copy link

socket-security bot commented Jan 23, 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.

Ignoring: npm/@metamask/[email protected]

View full report↗︎

Next steps

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

@jpuri
Copy link
Contributor

jpuri commented Jan 24, 2024

@SocketSecurity ignore npm/@metamask/[email protected]

@segun segun mentioned this pull request Jan 24, 2024
13 tasks
@jpuri
Copy link
Contributor

jpuri commented Jan 24, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@jpuri
Copy link
Contributor

jpuri commented Jan 24, 2024

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated

@jpuri jpuri marked this pull request as ready for review January 24, 2024 18:20
@jpuri jpuri requested review from a team as code owners January 24, 2024 18:20
class AsyncWritableStream extends Writable {
constructor(asyncWriteFn, _opts) {
const opts = { objectMode: true, ..._opts };
super(opts);
Copy link
Contributor

Choose a reason for hiding this comment

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

This change was needed to fix a weird lint issue.

jpuri
jpuri previously approved these changes Jan 24, 2024
@jpuri
Copy link
Contributor

jpuri commented Jan 25, 2024

@metamaskbot update-policies

Download = 'download',
File = 'file',
FileIcon = 'file',
Flask = 'flask',
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2024-01-25 at 10 49 03 AM

I renamed the variable to fix lint issue cc @georgewrmarshall

jpuri
jpuri previously approved these changes Jan 25, 2024
@metamaskbot
Copy link
Collaborator

Policies updated

@metamaskbot
Copy link
Collaborator

Builds ready [9cc99f0]
Page Load Metrics (827 ± 22 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint92168119199
domContentLoaded95720126
load7599388274722
domInteractive95720126
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 41.06 KiB (1.23%)
  • ui: 0 Bytes (0.00%)
  • common: 4 Bytes (0.00%)

@jpuri jpuri merged commit b67f734 into develop Jan 25, 2024
@jpuri jpuri deleted the olu/enable-ppom-on-other-chains-2 branch January 25, 2024 08:48
@github-actions github-actions bot locked and limited conversation to collaborators Jan 25, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jan 25, 2024
@metamaskbot metamaskbot added the release-11.10.0 Issue or pull request that will be included in release 11.10.0 label Jan 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-11.10.0 Issue or pull request that will be included in release 11.10.0 team-confirmations-secure-ux-PR PRs from the confirmations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants