difftreelog
fmt
in: master
5 files changed
tests/src/eth/collectionSponsoring.test.tsdiffbeforeafterboth161 {161 {162 const result = await collectionEvm.methods.mintWithTokenURI(user, 'Test URI').send({from: user});162 const result = await collectionEvm.methods.mintWithTokenURI(user, 'Test URI').send({from: user});163 const event = helper.eth.normalizeEvents(result.events)163 const event = helper.eth.normalizeEvents(result.events)164 .find(event => event.event === 'Transfer');;164 .find(event => event.event === 'Transfer');165 165 166 expect(event).to.be.deep.equal(166 expect(event).to.be.deep.equal({167 {tests/src/eth/events.test.tsdiffbeforeafterboth47 }47 }48 {48 {49 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);49 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);50 let result = await collectionHelper.methods.destroyCollection(collectionAddress).send({from:owner});50 const result = await collectionHelper.methods.destroyCollection(collectionAddress).send({from:owner});51 expect(result.events).to.be.like({51 expect(result.events).to.be.like({52 CollectionDestroyed: {52 CollectionDestroyed: {53 returnValues: {53 returnValues: {66 const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);66 const collection = await helper.ethNativeContract.collection(collectionAddress, mode, owner);67 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);67 const collectionHelper = helper.ethNativeContract.collectionHelpers(owner);68 68 69 let {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionPropertySet', 'CollectionPropertyDeleted']}]);69 const {unsubscribe, collectedEvents: subEvents} = await helper.subscribeEvents([{section: 'common', names: ['CollectionPropertySet', 'CollectionPropertyDeleted']}]);70 {70 {71 const ethEvents: any = [];71 const ethEvents: any = [];72 collectionHelper.events.allEvents((_: any, event: any) => {72 collectionHelper.events.allEvents((_: any, event: any) => {tests/src/eth/proxy/nonFungibleProxy.test.tsdiffbeforeafterbothno syntactic changes
tests/src/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth197 }197 }198 }198 }199199200 async createCollection(mode: TCollectionMode, signer: string, name: string, description: string, tokenPrefix: string, decimals: number = 18): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {200 async createCollection(mode: TCollectionMode, signer: string, name: string, description: string, tokenPrefix: string, decimals = 18): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {201 const collectionCreationPrice = this.helper.balance.getCollectionCreationPrice();201 const collectionCreationPrice = this.helper.balance.getCollectionCreationPrice();202 const collectionHelper = this.helper.ethNativeContract.collectionHelpers(signer);202 const collectionHelper = this.helper.ethNativeContract.collectionHelpers(signer);203 const functionName: string = this.createCollectionMethodName(mode);203 const functionName: string = this.createCollectionMethodName(mode);tests/src/util/playgrounds/unique.tsdiffbeforeafterboth415 if (event.section === e.section && e.names.includes(event.method)) {415 if (event.section === e.section && e.names.includes(event.method)) {416 collectedEvents.push(event);416 collectedEvents.push(event);417 }417 }418 }))418 }));419 });419 });420 });420 });421 return {unsubscribe: unsubscribe as any, collectedEvents};421 return {unsubscribe: unsubscribe as any, collectedEvents};