Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Expand Contract sub-class to accept BaseContract super-class construc…
…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
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.