Skip to content

Vulnerability: Strict Equality Type Mismatch (e.g., chainId === "1" vs 1) #75

@aniket866

Description

@aniket866
  • Strict Equality Bugs: The network switcher often compares chain IDs as numbers vs strings (e.g., chainId === "1" vs 1), leading to "Wrong Network" errors despite being on the correct chain.

  • Fix: Standardize on Number(chainId) for all comparisons.

@kumawatkaran523 Let me fix this across all files , /assign me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions