--- a/tests/src/util/contracthelpers.ts +++ b/tests/src/util/contracthelpers.ts @@ -22,9 +22,9 @@ function deployContract(alice: IKeyringPair, code: CodePromise, constructor: string = 'default', ...args: any[]): Promise { return new Promise(async (resolve, reject) => { - const unsub = await code + const unsub = await (code as any) .tx[constructor]({value: endowment, gasLimit}, ...args) - .signAndSend(alice, (result) => { + .signAndSend(alice, (result: any) => { if (result.status.isInBlock || result.status.isFinalized) { // here we have an additional field in the result, containing the blueprint resolve((result as any).contract);