From aa157070f97dd5e96a1beea852614c4df0ab44a6 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 09 Mar 2021 15:39:00 +0000 Subject: [PATCH] tests: fix contracthelpers types --- --- 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); -- gitstuff