-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
When I try to deploy a contract that has an Array in one of its constructor parameters,
I get the following error
At src/utils.ts The type Array<BigNumberish> = [] dosn't match ContractFactory.deploy(...args: ContractMethodArgs<A>)

There are two ways to solve this
Solution A
To use ContractMethodArgs<A> if u check ethersjs, you'll see ContractFactory class <A extends Array<any> = Array<any>
no type safety it'll just accept everything.
Solution B
Generic types, this is how it will look.
If u did something wrong, like wrong (deployment params, function name, function params), you'll get this.
Also, the function has a return type, it handles both cases, returns with names or without
Metadata
Metadata
Assignees
Labels
No labels







