We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi I am unable to use .connect() as it changes the type to what it has already generated regardless of the type I determined.
import { ethers } from "hardhat"; import {Lock, Lock2} from "../typechain-types" type Lock1AndLock2 = Lock2 & Lock describe("Sample", function() { it("Should have the same type", async function() { const Lock = (await ethers.getContractAt(abi, address)) as unknown as Lock1AndLock2; // type: Lock1AndLock2 const LockWithDifferentRunner = Lock.connect(undefined); // type: Lock2 /* Currently: Lock: Lock1AndLock2 LockWithDifferentRunner: Lock2 */ /* Expected: Lock: Lock1AndLock2 LockWithDifferentRunner: Lock1AndLock2 why the type of LockWithDifferentRunner changed after conencting to a different runenr? */ }) })
The text was updated successfully, but these errors were encountered:
This requires this type in return of
this
TypeChain/packages/target-ethers-v6/src/codegen/index.ts
Line 69 in ec6b860
Sorry, something went wrong.
No branches or pull requests
Hi
I am unable to use .connect() as it changes the type to what it has already generated regardless of the type I determined.
The text was updated successfully, but these errors were encountered: