Fix Unable to determine contract standard error#18300
Merged
bschorchit merged 2 commits intodevelopfrom Apr 11, 2023
Merged
Conversation
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. |
431edd0 to
18a7bd7
Compare
Collaborator
Builds ready [18a7bd7]
Page Load Metrics (1685 ± 101 ms)
Bundle size diffs
|
Codecov Report
@@ Coverage Diff @@
## develop #18300 +/- ##
===========================================
- Coverage 65.15% 64.51% -0.64%
===========================================
Files 936 913 -23
Lines 35965 35326 -639
Branches 9231 9071 -160
===========================================
- Hits 23432 22788 -644
- Misses 12533 12538 +5
... and 183 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Contributor
|
Verified by QA |
danjm
approved these changes
Mar 23, 2023
legobeat
approved these changes
Apr 10, 2023
Collaborator
Builds ready [e32e400]
Page Load Metrics (1728 ± 108 ms)
Bundle size diffs
|
Gudahtt
added a commit
that referenced
this pull request
May 24, 2024
We collect metric data for each phase of a transaction's lifecycle. During one phase, we try to detect the type of asset being transacted. This step was broken due to a missing `await`, so the asset type was never identified. Additionally, the missing `await` meant that errors were not being handled correctly, resulting in many junk Sentry error events. Fixes #18300
dbrans
added a commit
that referenced
this pull request
May 28, 2024
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> ## **Description** We collect metric data for each phase of a transaction's lifecycle. During one phase, we try to detect the type of asset being transacted. This step was broken due to a missing `await`, so the asset type was never identified. Additionally, the missing `await` meant that errors were not being handled correctly, resulting in many junk Sentry error events. This seems to have been broken as part of a TypeScript refactor, in #23445, perhaps due to a pre-existing invalid type for this function that was added in #21330 [](https://codespaces.new/MetaMask/metamask-extension/pull/24770?quickstart=1) ## **Related issues** Fixes #18300 ## **Manual testing steps** TODO I haven't reproduced any actual bug/missing metrics data from this yet, but presumably we should see that and be able to test this. I discovered this by looking into the Sentry error volume side-effect. ## **Screenshots/Recordings** N/A ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). 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. Co-authored-by: Derek Brans <dbrans@gmail.com>
dbrans
added a commit
that referenced
this pull request
May 28, 2024
<!-- Please submit this PR as a draft initially. Do not mark it as "Ready for review" until the template has been completely filled out, and PR status checks have passed at least once. --> We collect metric data for each phase of a transaction's lifecycle. During one phase, we try to detect the type of asset being transacted. This step was broken due to a missing `await`, so the asset type was never identified. Additionally, the missing `await` meant that errors were not being handled correctly, resulting in many junk Sentry error events. This seems to have been broken as part of a TypeScript refactor, in that was added in #21330 [](https://codespaces.new/MetaMask/metamask-extension/pull/24770?quickstart=1) Fixes #18300 TODO I haven't reproduced any actual bug/missing metrics data from this yet, but presumably we should see that and be able to test this. I discovered this by looking into the Sentry error volume side-effect. N/A - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [ ] I've completed the PR template to the best of my ability - [ ] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. - [ ] 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. Co-authored-by: Derek Brans <dbrans@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explanation
Inside the useTransactionDisplayData hook we were sending the wrong token address to the getAndSetAssetDetails function and that would cause error : Unable to determine Contract Standard
This PR will ensure to send correct token address.
Fixes #18135
Fixes #17287
Manual Testing Steps
Pre-merge author checklist
Pre-merge reviewer checklist
If further QA is required (e.g. new feature, complex testing steps, large refactor), add the
Extension QA Boardlabel.In this case, a QA Engineer approval will be be required.