diff --git a/typescript/base/src/instance.ts b/typescript/base/src/instance.ts index 53e28b1..9e22f59 100644 --- a/typescript/base/src/instance.ts +++ b/typescript/base/src/instance.ts @@ -53,9 +53,12 @@ export abstract class Instance { args?: unknown[] ): Promise; - async getContract (name: ContractName) { + async getContract (name: ContractName, args?: unknown[]) { return this.adapter.createContract( - await this.getContractAddress(name), + await this.getContractAddress( + name, + args + ), await this.getContractAbi(name) ); }