Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
schaable committed Jun 25, 2024
1 parent a8a6038 commit 890bdee
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions packages/hardhat-viem/src/internal/tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ declare module "hardhat/types/artifacts" {
interface ContractTypesMap {
${Array.from(duplicateContractNames)
.map((name) => `${name}: never;`)
.join("\n ")}
.map((name) => `${name}: never;`)
.join("\n ")}
}
}
`;
Expand Down Expand Up @@ -284,11 +284,17 @@ declare module "hardhat/types/artifacts" {
interface ContractTypesMap {
${contractTypeData
.map((ctd) => `["${ctd.contractName}"]: GetContractReturnType<${ctd.typeName}["abi"]>;`)
.join("\n ")}
.map(
(ctd) =>
`["${ctd.contractName}"]: GetContractReturnType<${ctd.typeName}["abi"]>;`
)
.join("\n ")}
${contractTypeData
.map((ctd) => `["${ctd.fqn}"]: GetContractReturnType<${ctd.typeName}["abi"]>;`)
.join("\n ")}
.map(
(ctd) =>
`["${ctd.fqn}"]: GetContractReturnType<${ctd.typeName}["abi"]>;`
)
.join("\n ")}
}
}
`;
Expand Down

0 comments on commit 890bdee

Please sign in to comment.