Hi, I’m seeing an issue when using metamask smart accounts with my web3auth instance using sapphire devnet locally. I tried honing in on the issue and found that it is also happening in the example smart account project leading me to think this is an SDK/Server Side issue. please help and take a look!
chunk-ND7OWMWQ.js?v=8c36952f:3402 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'substring')
at checksumAddress (chunk-ND7OWMWQ.js?v=8c36952f:3402:81)
at chunk-6SUKJWZG.js?v=8c36952f:8195:37
at Array.map (<anonymous>)
at getAddresses (chunk-6SUKJWZG.js?v=8c36952f:8195:20)
at async MetamaskSmartAccount.getSmartAccount (chunk-DV3NKGXT.js?v=8c36952f:108648:26)
at async AccountAbstractionProvider.setupProvider (chunk-6FRC4KUZ.js?v=8c36952f:431:26)
at async AccountAbstractionProvider.getProviderInstance (chunk-6FRC4KUZ.js?v=8c36952f:490:3)
at async AuthConnector.<anonymous> (chunk-MHVGSCGV.js?v=8c36952f:16086:28)
<Web3AuthProvider>
AppProvider @ provider.tsx:22
<AppProvider>
(anonymous) @ main.tsx:9
Thank you for providing the code links and screenshot—this will help the team investigate faster. If you have any additional logs or context, feel free to add them here!
The support team will review and get back to you soon.
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours
I am getting the same issue. Web3Auth’s native smart account (MetaMask’s smart account) fails to initialize with the same error: Cannot read properties of undefined (reading 'substring')