-
Notifications
You must be signed in to change notification settings - Fork 5k
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
[Bug]: Multichain - Cannot destructure property 'balance' of 'K[Z]' as it is undefined.
and Cannot destructure property 'balance' of 'accounts[fromAddress]' as it is undefined.
#25406
Comments
Cannot destructure property 'balance' of 'K[Z]' as it is undefined.
Cannot destructure property 'balance' of 'K[Z]' as it is undefined.
and Cannot destructure property 'balance' of 'accounts[fromAddress]' as it is undefined.
Will continue trying to reproduce but I had no issue with this case but will keep trying: Screen.Recording.2024-06-19.at.12.58.42.PM.mov |
@matthewwalsh0 can you or someone from the Confirmations team have a look? |
Was able to reproduce |
Present in the latest build [https://github.com/MetaMask/metamask-extension/commit/eebc4d5b2284024eaeb190cddfa89990f593ca34] Screen.Recording.2024-06-20.at.17.43.05.mov |
I think this is the same bug? With different errors. We could combine them into one. |
…ned` fromAddress error when no transaction is loaded in ConfirmTransactionBase (#25506) In `confirm-transaction-base.container.js`, while the transaction is switching, the component may be in a state without transaction data. In this case, we can handle the empty transaction data appropriately until the expected data comes in to allow the user flow to continue without breaking. **note:** I was unable to reproduce this in `develop` after some time, but I successfully repro'd this in `Version-v12.0.0` which allowed me to verify the fix works. Possibly the underlying empty transaction data state was fixed by other code in `develop` This PR is planned to be cherry-picked for Version-v12.0.0 Fixes: #25406 See [Issue](#25406) for repro steps `confirm-transaction-base.container.js` ![CleanShot 2024-06-25 at 15 58 13@2x](https://github.com/MetaMask/metamask-extension/assets/20778143/4c3ccc3f-8583-4b76-b6cc-9bebc1f1045c) See error in [Issue](#25406) screenshots No error message is shown and app works as expected <!-- [screenshots/recordings] --> - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension 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 - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] 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.
…nce' of 'K[Z]' as it is undefined fromAddress` error when no transaction is loaded in ConfirmTransactionBase (#25566) ## **Description** Cherry-pick #25506 for Version-v12.0.0 [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/25566?quickstart=1) ## **Related issues** Fixes: #25406 ## **Manual testing steps** 1. Go to this page... 2. 3. ## **Screenshots/Recordings** <!-- If applicable, add screenshots and/or recordings to visualize the before and after of your change. --> ### **Before** <!-- [screenshots/recordings] --> ### **After** <!-- [screenshots/recordings] --> ## **Pre-merge author checklist** - [ ] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension 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 - [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [ ] 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.
Collaborative Effort Required for Root Cause Analysis (RCA) on Critical Issues We are quickly approaching the end of the quarter and we encourage you once again to take some moments and perform RCA on this critical issue. You may do so by answering the questions below: 1. What PR fixed the issue? Please provide your answers as a reply to this comment and tag me as well. You can read more about the initiative here. Thank you! Tagging eng. who added the fix: @digiwand |
Hi @benjisclowder,
|
Describe the bug
Triggering a transaction on one chain, and without approving it, triggering a signature in another chain, whenever I reject/accept the first transaction, MM breaks with the error
Cannot destructure property 'balance' of 'K[Z]' as it is undefined.
I've also seen it fail with this other message
Cannot destructure property 'balance' of 'accounts[fromAddress]' as it is undefined.
Expected behavior
No response
Screenshots/Recordings
destructure-balance-z.mp4
cannot-destructure-balance-accts.mp4
Steps to reproduce
Error messages or log output
No response
Version
12.0.0
Build type
None
Browser
Chrome
Operating system
Linux
Hardware wallet
No response
Additional context
No response
Severity
No response
The text was updated successfully, but these errors were encountered: