difftreelog
fix misprint
in: master
1 file changed
tests/src/util/helpers.tsdiffbeforeafterboth268 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};273273274const 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};281281282export 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};284284285 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);