Contract's constructor requires InterfaceAbi #4142
Labels
enhancement
New feature or improvement.
fixed/complete
This Bug is fixed or Enhancement is complete and published.
minor-bump
Planned for the next minor version bump.
v6
Issues regarding v6
Ethers Version
6.5.1
Search Terms
Contract', ContractFactory, InterfaceAbi
Describe the Problem
I write tests using hardhat. I need to attach different addresses to the same contract.
I think the problem is not using hardhat, as it just looks strange:
new Contract
requiresInterfaceAbi
, but why can't I passInterface
?i can fix ts error by passing
ReadonlyArray<Fragment>
:const iface = factory.interface.fragments;
But it looks... ugly?
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
Hardhat
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: