git.delta.rocks / unique-network / refs/commits / d3ed694b7a7e

difftreelog

fix misprint

Igor Kozyrev2022-04-21parent: #5f2e50b.patch.diff
in: master

1 file changed

modifiedtests/src/util/helpers.tsdiffbeforeafterboth
268 name: string,268 name: string,
269 description: string,269 description: string,
270 tokenPrefix: string,270 tokenPrefix: string,
271 shemaVersion: string,271 schemaVersion: string,
272};272};
273273
274const defaultCreateCollectionParams: CreateCollectionParams = {274const defaultCreateCollectionParams: CreateCollectionParams = {
275 description: 'description',275 description: 'description',
276 mode: {type: 'NFT'},276 mode: {type: 'NFT'},
277 name: 'name',277 name: 'name',
278 tokenPrefix: 'prefix',278 tokenPrefix: 'prefix',
279 shemaVersion: 'ImageURL',279 schemaVersion: 'ImageURL',
280};280};
281281
282export async function createCollectionExpectSuccess(params: Partial<CreateCollectionParams> = {}): Promise<number> {282export async function createCollectionExpectSuccess(params: Partial<CreateCollectionParams> = {}): Promise<number> {
283 const {name, description, mode, tokenPrefix, shemaVersion} = {...defaultCreateCollectionParams, ...params};283 const {name, description, mode, tokenPrefix, schemaVersion} = {...defaultCreateCollectionParams, ...params};
284284
285 let collectionId = 0;285 let collectionId = 0;
286 await usingApi(async (api) => {286 await usingApi(async (api) => {
304 description: strToUTF16(description), 304 description: strToUTF16(description),
305 tokenPrefix: strToUTF16(tokenPrefix), 305 tokenPrefix: strToUTF16(tokenPrefix),
306 mode: modeprm as any,306 mode: modeprm as any,
307 schemaVersion: shemaVersion,307 schemaVersion: schemaVersion,
308 });308 });
309 const events = await submitTransactionAsync(alicePrivateKey, tx);309 const events = await submitTransactionAsync(alicePrivateKey, tx);
310 const result = getCreateCollectionResult(events);310 const result = getCreateCollectionResult(events);