From 86d26e3a07adee83fd1239d12f76df6de6d9bfa5 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 04 Jul 2022 16:46:10 +0000 Subject: [PATCH] fix: test helpers after type regen --- --- a/tests/src/util/helpers.ts +++ b/tests/src/util/helpers.ts @@ -1024,7 +1024,7 @@ expectedBlockNumber, repetitions > 1 ? [period, repetitions] : null, 0, - {value: operationTx as any}, + {Value: operationTx as any}, ); const events = await submitTransactionAsync(sender, scheduleTx); @@ -1051,7 +1051,7 @@ expectedBlockNumber, repetitions <= 1 ? null : [period, repetitions], 0, - {value: operationTx as any}, + {Value: operationTx as any}, ); //const events = @@ -1380,7 +1380,7 @@ let tx; if (createMode === 'NFT') { - const data = api.createType('UpDataStructsCreateItemData', {NFT: {properties: props}}); + const data = api.createType('UpDataStructsCreateItemData', {NFT: {properties: props}}) as UpDataStructsCreateItemData; tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), data); } else { tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), createMode); -- gitstuff