How to specify the typed interface when deploying a contract with new ContractFactory? #4564
Labels
documentation
Documentation related issue.
investigate
Under investigation and may be a bug.
on-deck
This Enhancement or Bug is currently being worked on.
v6
Issues regarding v6
Ethers Version
6.10.0
Search Terms
abi, type
Describe the Problem
Having the following code snippet, when trying to deploy a custom
Box
contract, I'm getting the following type error:Type 'BaseContract & Omit<ContractInterface, keyof BaseContract>' is missing the following properties from type 'Box': UPGRADE_INTERFACE_VERSION, foo, initialize, owner, and 5 more.
How should one specify the contract type when deploying using
new ContractFactory()
so all theBox
-specific methods should be included and therefore suggested? (e.g.box.owner()
,box.version()
)Code Snippet
Contract ABI
No response
Errors
Environment
Hardhat
Environment (Other)
No response
The text was updated successfully, but these errors were encountered: