From f0a9619d8dce8c5f7ac7f2925a5bdbf255e45b10 Mon Sep 17 00:00:00 2001 From: johnpm-12 <39016062+johnpm-12@users.noreply.github.com> Date: Fri, 14 Jun 2024 08:37:21 -0700 Subject: [PATCH] fix lint --- packages/hardhat-plugin-viem/src/viem-ignition-helper.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hardhat-plugin-viem/src/viem-ignition-helper.ts b/packages/hardhat-plugin-viem/src/viem-ignition-helper.ts index 393f607e3..63e7716d4 100644 --- a/packages/hardhat-plugin-viem/src/viem-ignition-helper.ts +++ b/packages/hardhat-plugin-viem/src/viem-ignition-helper.ts @@ -253,10 +253,10 @@ export class ViemIgnitionHelper { chain?: Chain ): Promise { const publicClient = await hre.viem.getPublicClient( - chain ? { chain } : undefined + typeof chain !== "undefined" ? { chain } : undefined ); const [walletClient] = await hre.viem.getWalletClients( - chain ? { chain } : undefined + typeof chain !== "undefined" ? { chain } : undefined ); if (walletClient === undefined) { @@ -283,10 +283,10 @@ export class ViemIgnitionHelper { chain?: Chain ): Promise { const publicClient = await hre.viem.getPublicClient( - chain ? { chain } : undefined + typeof chain !== "undefined" ? { chain } : undefined ); const [walletClient] = await hre.viem.getWalletClients( - chain ? { chain } : undefined + typeof chain !== "undefined" ? { chain } : undefined ); if (walletClient === undefined) {