From 8d321244a83736d4a926a9ee35b46fcbb1da43ba Mon Sep 17 00:00:00 2001 From: danilo neves cruz Date: Thu, 9 Mar 2023 18:55:20 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20ethers-v6:=20fix=20contract=20co?= =?UTF-8?q?nnect=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/ethers-v6-connect.md | 5 +++++ packages/target-ethers-v6/src/codegen/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/ethers-v6-connect.md diff --git a/.changeset/ethers-v6-connect.md b/.changeset/ethers-v6-connect.md new file mode 100644 index 000000000..08dcf9562 --- /dev/null +++ b/.changeset/ethers-v6-connect.md @@ -0,0 +1,5 @@ +--- +"@typechain/ethers-v6": patch +--- + +🐛 fix contract connect type diff --git a/packages/target-ethers-v6/src/codegen/index.ts b/packages/target-ethers-v6/src/codegen/index.ts index 3d1917abc..4644f73e4 100644 --- a/packages/target-ethers-v6/src/codegen/index.ts +++ b/packages/target-ethers-v6/src/codegen/index.ts @@ -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;