Expand Contract sub-class to accept BaseContract super-class constructor arguments (#4538).

This commit is contained in:
Richard Moore 2024-02-01 01:59:31 -05:00
parent b6bf7aba62
commit 98496bc48e

@ -1110,7 +1110,7 @@ export class BaseContract implements Addressable, EventEmitterable<ContractEvent
}
}
function _ContractBase(): new (target: string, abi: Interface | InterfaceAbi, runner?: null | ContractRunner) => BaseContract & Omit<ContractInterface, keyof BaseContract> {
function _ContractBase(): new (target: string | Addressable, abi: Interface | InterfaceAbi, runner?: null | ContractRunner) => BaseContract & Omit<ContractInterface, keyof BaseContract> {
return BaseContract as any;
}