Skip to content

Optimization: Sync "Ensure Network" Logic #46

Description

@aniket866
  • Issue: ensureCorrectNetwork creates a new wallet client and then checks chain ID.

  • Impact: It builds the client object even if it might immediately fail or throw.

  • Fix: Check window.ethereum.chainId before instantiating the viem client.

@Zahnentferner Please assign

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions