git.delta.rocks / unique-network / refs/commits / 86d26e3a07ad

difftreelog

fix test helpers after type regen

Daniel Shiposha2022-07-04parent: #1813dc3.patch.diff
in: master

1 file changed

modifiedtests/src/util/helpers.tsdiffbeforeafterboth
1024 expectedBlockNumber, 1024 expectedBlockNumber,
1025 repetitions > 1 ? [period, repetitions] : null, 1025 repetitions > 1 ? [period, repetitions] : null,
1026 0, 1026 0,
1027 {value: operationTx as any},1027 {Value: operationTx as any},
1028 );1028 );
10291029
1030 const events = await submitTransactionAsync(sender, scheduleTx);1030 const events = await submitTransactionAsync(sender, scheduleTx);
1051 expectedBlockNumber, 1051 expectedBlockNumber,
1052 repetitions <= 1 ? null : [period, repetitions], 1052 repetitions <= 1 ? null : [period, repetitions],
1053 0, 1053 0,
1054 {value: operationTx as any},1054 {Value: operationTx as any},
1055 );1055 );
10561056
1057 //const events = 1057 //const events =
13801380
1381 let tx;1381 let tx;
1382 if (createMode === 'NFT') {1382 if (createMode === 'NFT') {
1383 const data = api.createType('UpDataStructsCreateItemData', {NFT: {properties: props}});1383 const data = api.createType('UpDataStructsCreateItemData', {NFT: {properties: props}}) as UpDataStructsCreateItemData;
1384 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), data);1384 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), data);
1385 } else {1385 } else {
1386 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), createMode);1386 tx = api.tx.unique.createItem(collectionId, normalizeAccountId(owner), createMode);