Skip to content

Commit

Permalink
🐛 ethers-v6: fix contract connect type
Browse files Browse the repository at this point in the history
  • Loading branch information
cruzdanilo committed Mar 10, 2023
1 parent 23a5dad commit 8d32124
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/ethers-v6-connect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@typechain/ethers-v6": patch
---

🐛 fix contract connect type
2 changes: 1 addition & 1 deletion packages/target-ethers-v6/src/codegen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function codegenContractTypings(contract: Contract, codegenConfig: Codege
export interface ${contract.name} extends BaseContract {
${codegenConfig.discriminateTypes ? `contractName: '${contract.name}';\n` : ``}
connect(runner?: ContractRunner | null): BaseContract;
connect(runner?: ContractRunner | null): this;
attach(addressOrName: AddressLike): this;
deployed(): Promise<this>;
Expand Down

0 comments on commit 8d32124

Please sign in to comment.