Skip to content

Commit

Permalink
Add a ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
wbt committed Oct 22, 2023
1 parent 589b0ca commit 7228648
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nextjs/utils/scaffold-eth/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type IsContractDeclarationMissing<TYes, TNo> = typeof contractsData extends { [k

type ContractsDeclaration = IsContractDeclarationMissing<GenericContractsDeclaration, typeof contractsData>;

//@ts-ignore as it can't figure out two 63s match since it generalizes to Number.
type Contracts = ContractsDeclaration[ConfiguredChainId][0]["contracts"];

export type ContractName = keyof Contracts;
Expand Down

0 comments on commit 7228648

Please sign in to comment.