Skip to content

Commit da4aaaa

Browse files
committed
🐛 ethers-v6: fix contract connect type
1 parent 2b29791 commit da4aaaa

File tree

27 files changed

+31
-26
lines changed

27 files changed

+31
-26
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-test/types/v0.6.4/DataTypesInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ export interface DataTypesInputInterface extends Interface {
362362
}
363363

364364
export interface DataTypesInput extends BaseContract {
365-
connect(runner?: ContractRunner | null): BaseContract;
365+
connect(runner?: ContractRunner | null): this;
366366
attach(addressOrName: AddressLike): this;
367367
deployed(): Promise<this>;
368368

packages/target-ethers-v6-test/types/v0.6.4/DataTypesPure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export interface DataTypesPureInterface extends Interface {
138138
}
139139

140140
export interface DataTypesPure extends BaseContract {
141-
connect(runner?: ContractRunner | null): BaseContract;
141+
connect(runner?: ContractRunner | null): this;
142142
attach(addressOrName: AddressLike): this;
143143
deployed(): Promise<this>;
144144

packages/target-ethers-v6-test/types/v0.6.4/DataTypesView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export interface DataTypesViewInterface extends Interface {
138138
}
139139

140140
export interface DataTypesView extends BaseContract {
141-
connect(runner?: ContractRunner | null): BaseContract;
141+
connect(runner?: ContractRunner | null): this;
142142
attach(addressOrName: AddressLike): this;
143143
deployed(): Promise<this>;
144144

packages/target-ethers-v6-test/types/v0.6.4/Events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export namespace UpdateFrequencySetEvent {
201201
}
202202

203203
export interface Events extends BaseContract {
204-
connect(runner?: ContractRunner | null): BaseContract;
204+
connect(runner?: ContractRunner | null): this;
205205
attach(addressOrName: AddressLike): this;
206206
deployed(): Promise<this>;
207207

packages/target-ethers-v6-test/types/v0.6.4/Issue428_Reproduction/A.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export namespace CommittedEvent {
3636
}
3737

3838
export interface A extends BaseContract {
39-
connect(runner?: ContractRunner | null): BaseContract;
39+
connect(runner?: ContractRunner | null): this;
4040
attach(addressOrName: AddressLike): this;
4141
deployed(): Promise<this>;
4242

packages/target-ethers-v6-test/types/v0.6.4/Issue428_Reproduction/B.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export namespace Committed_address_array_Event {
5151
}
5252

5353
export interface B extends BaseContract {
54-
connect(runner?: ContractRunner | null): BaseContract;
54+
connect(runner?: ContractRunner | null): this;
5555
attach(addressOrName: AddressLike): this;
5656
deployed(): Promise<this>;
5757

packages/target-ethers-v6-test/types/v0.6.4/Library/Lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface LibInterface extends Interface {
3030
}
3131

3232
export interface Lib extends BaseContract {
33-
connect(runner?: ContractRunner | null): BaseContract;
33+
connect(runner?: ContractRunner | null): this;
3434
attach(addressOrName: AddressLike): this;
3535
deployed(): Promise<this>;
3636

packages/target-ethers-v6-test/types/v0.6.4/LibraryConsumer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface LibraryConsumerInterface extends Interface {
3333
}
3434

3535
export interface LibraryConsumer extends BaseContract {
36-
connect(runner?: ContractRunner | null): BaseContract;
36+
connect(runner?: ContractRunner | null): this;
3737
attach(addressOrName: AddressLike): this;
3838
deployed(): Promise<this>;
3939

packages/target-ethers-v6-test/types/v0.6.4/Name-Mangling/NAME12mangling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface NAME12manglingInterface extends Interface {
3131
}
3232

3333
export interface NAME12mangling extends BaseContract {
34-
connect(runner?: ContractRunner | null): BaseContract;
34+
connect(runner?: ContractRunner | null): this;
3535
attach(addressOrName: AddressLike): this;
3636
deployed(): Promise<this>;
3737

0 commit comments

Comments
 (0)