Skip to content

Commit 98496bc

Browse files
committed
Expand Contract sub-class to accept BaseContract super-class constructor arguments (#4538).
1 parent b6bf7ab commit 98496bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.ts/contract/contract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ export class BaseContract implements Addressable, EventEmitterable<ContractEvent
11101110
}
11111111
}
11121112

1113-
function _ContractBase(): new (target: string, abi: Interface | InterfaceAbi, runner?: null | ContractRunner) => BaseContract & Omit<ContractInterface, keyof BaseContract> {
1113+
function _ContractBase(): new (target: string | Addressable, abi: Interface | InterfaceAbi, runner?: null | ContractRunner) => BaseContract & Omit<ContractInterface, keyof BaseContract> {
11141114
return BaseContract as any;
11151115
}
11161116

0 commit comments

Comments
 (0)