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

Error: Cannot destructure property 'address' of '(intermediate value)' as it is undefined #162

Open
victor-homyakov opened this issue Oct 2, 2024 · 5 comments

Comments

@victor-homyakov
Copy link

I see the following error in the browser extension MyTonWallet https://chromewebstore.google.com/detail/MyTonWallet%20%C2%B7%20My%20TON%20Wallet/fldfpgipfncgndfolcbkdeeknbbbnhcc

Error: Cannot destructure property 'address' of '(intermediate value)' as it is undefined.
    at ConnectorClass.onMessage (chrome-extension://fldfpgipfncgndfolcbkdeeknbbbnhcc/extensionPageScript.js:1574:13)
    at handleMessage (chrome-extension://fldfpgipfncgndfolcbkdeeknbbbnhcc/extensionPageScript.js:1597:15)
@mytonwalletorg
Copy link
Owner

Hi @victor-homyakov , are you using the latest (3.0.24) version?

@victor-homyakov
Copy link
Author

victor-homyakov commented Oct 3, 2024

Right now - yes, the latest from the Google Store.

The error is received from the service worker at line

connector.onMessage(data);
and is thrown at line
throw new Error(data.error?.message);

I cannot reproduce the error, but it happens somewhere in the service worker when it tries to destructure something like

const { address, init } = wallet;

or

const { address, isInitialized: isWalletInitialized, version } = await fetchStoredTonWallet(accountId);

or

async function retrySendBoc({
  network, address, boc, seqno, timestamp,
}

or one of similar expressions

@mytonwalletorg
Copy link
Owner

@victor-homyakov Can you still reproduce this with the latest version?

@victor-homyakov
Copy link
Author

Yes, it still reproduces in 3.0.31. The line numbers have changed slightly since Oct 18 (when 3.0.31 rolled out) but the rest is still the same:

Error: Cannot destructure property 'address' of '(intermediate value)' as it is undefined.
    at ConnectorClass.onMessage (chrome-extension://fldfpgipfncgndfolcbkdeeknbbbnhcc/extensionPageScript.js:1584:13)
    at handleMessage (chrome-extension://fldfpgipfncgndfolcbkdeeknbbbnhcc/extensionPageScript.js:1607:15)

@troman29
Copy link

@victor-homyakov Could you give me your contact or write me? To deal with the error faster.

Repository owner deleted a comment from tariqmahmood898 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants