-
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
Issue:
ensureCorrectNetworkcreates 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.chainIdbefore instantiating theviem client.@Zahnentferner Please assign