Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpm-12 committed Jun 14, 2024
1 parent b1511af commit f0a9619
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/hardhat-plugin-viem/src/viem-ignition-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,10 @@ export class ViemIgnitionHelper {
chain?: Chain
): Promise<GetContractReturnType> {
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) {
Expand All @@ -283,10 +283,10 @@ export class ViemIgnitionHelper {
chain?: Chain
): Promise<GetContractReturnType> {
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) {
Expand Down

0 comments on commit f0a9619

Please sign in to comment.