Skip to content

Commit

Permalink
Expand Contract sub-class to accept BaseContract super-class construc…
Browse files Browse the repository at this point in the history
…tor arguments (#4538).
  • Loading branch information
ricmoo committed Feb 1, 2024
1 parent b6bf7ab commit 98496bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/contract/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 98496bc

Please sign in to comment.