Skip to content

[Bug]: Cannot read properties of undefined (reading 'startsWith') on KONET custom network #41588

@Bazzixx

Description

@Bazzixx

Describe the bug

I encountered an error when using MetaMask with a custom network (KONET).

When switching to the KONET network or accessing the wallet, MetaMask fails to load and shows an error screen.

The wallet information cannot be displayed.

Expected behavior

MetaMask should load normally and display account information without errors.

Screenshots/Recordings

Image Image

Steps to reproduce

  1. Add KONET custom network (Chain ID: 17217)
  2. Switch to the KONET network
  3. Open MetaMask or try to access wallet
  4. Error appears

Error messages or log output

TypeError: Cannot read properties of undefined (reading 'startsWith')

at isEVMAccountForSend
at Array.forEach

Where was this bug found?

Live version (from official store)

Version

13.23.0

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

The issue occurs consistently when using the custom network.

I have already tried:

  • Restarting MetaMask
  • Re-adding the network
  • Switching accounts

But the issue still persists.

This seems related to custom EVM network handling where account or network state becomes undefined.

Severity

High - The wallet cannot be used when connected to the KONET network.
This issue blocks normal wallet functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    Status

    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions