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

[MMI] Guard logic for MMI specific transaction metadata #21959

Merged
merged 5 commits into from
Nov 23, 2023

Conversation

zone-live
Copy link
Contributor

@zone-live zone-live commented Nov 23, 2023

Description

Currently all transactions in MMI will fail if Note To Trader is not enabled for a specific custodian

This is due to the metadata property on a txData being set in a conditional that does not always evaluate true.

This PR defines this property outside the conditional.

Related issues

Fixes: MMI Jira Ticket MMI-4124

Manual testing steps

  1. Disable note to trader in Saturn Custody
  2. Confirm a transaction
  3. Observe that no error is thrown

Screenshots/Recordings

Before

image

After

(No exception)

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.

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.

@zone-live zone-live requested a review from shane-t November 23, 2023 03:57
@zone-live zone-live added the team-mmi PRs from the MMI team label Nov 23, 2023
@shane-t shane-t changed the title Fixes metadata logic [MMI] Guard logic for MMI specific transaction metadata Nov 23, 2023
@shane-t shane-t marked this pull request as ready for review November 23, 2023 11:03
@shane-t shane-t requested a review from a team as a code owner November 23, 2023 11:03
@metamaskbot
Copy link
Collaborator

Builds ready [cf5464c]
Page Load Metrics (288 ± 199 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint811139194
domContentLoaded6410275126
load761222288415199
domInteractive6410275126
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 24 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@shane-t shane-t requested a review from DDDDDanica November 23, 2023 12:49
@DDDDDanica
Copy link
Contributor

LGTM ! Just need some descriptions and manual testing steps

@shane-t shane-t merged commit 9afe693 into develop Nov 23, 2023
66 of 68 checks passed
@shane-t shane-t deleted the MMI-fix-metadata-logic branch November 23, 2023 13:10
@github-actions github-actions bot locked and limited conversation to collaborators Nov 23, 2023
@metamaskbot metamaskbot added the release-11.7.0 Issue or pull request that will be included in release 11.7.0 label Nov 23, 2023
@metamaskbot
Copy link
Collaborator

Builds ready [a25f8a7]
Page Load Metrics (676 ± 309 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint871611202311
domContentLoaded661451062110
load781839676644309
domInteractive661451052110
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 24 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.7.0 Issue or pull request that will be included in release 11.7.0 team-mmi PRs from the MMI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants