Skip to content

Commit 8d32124

Browse files
committed
🐛 ethers-v6: fix contract connect type
1 parent 23a5dad commit 8d32124

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/ethers-v6-connect.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@typechain/ethers-v6": patch
3+
---
4+
5+
🐛 fix contract connect type

packages/target-ethers-v6/src/codegen/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function codegenContractTypings(contract: Contract, codegenConfig: Codege
6666
6767
export interface ${contract.name} extends BaseContract {
6868
${codegenConfig.discriminateTypes ? `contractName: '${contract.name}';\n` : ``}
69-
connect(runner?: ContractRunner | null): BaseContract;
69+
connect(runner?: ContractRunner | null): this;
7070
attach(addressOrName: AddressLike): this;
7171
deployed(): Promise<this>;
7272

0 commit comments

Comments
 (0)