git.delta.rocks / unique-network / refs/commits / 7e992038f1d6

difftreelog

CORE-300 Add comments

Trubnikov Sergey2022-03-21parent: #ea39b21.patch.diff
in: master

1 file changed

modifiedtests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth
245 const contract = new web3.eth.Contract(nonFungibleAbi as any, address, {from: userEth, ...GAS_ARGS});245 const contract = new web3.eth.Contract(nonFungibleAbi as any, address, {from: userEth, ...GAS_ARGS});
246 const receiver = createEthAccount(web3);246 const receiver = createEthAccount(web3);
247247
248 {248 { // This part should fail, because user not in access list and user have no money
249 const nextTokenId = await contract.methods.nextTokenId().call();249 // const nextTokenId = await contract.methods.nextTokenId().call();
250 expect(nextTokenId).to.be.equal('1');250 // expect(nextTokenId).to.be.equal('1');
251 // const result = await contract.methods.mintWithTokenURI(251 // const result = await contract.methods.mintWithTokenURI(
252 // receiver,252 // receiver,
253 // nextTokenId,253 // nextTokenId,
297 nextTokenId,297 nextTokenId,
298 'Test URI',298 'Test URI',
299 ).send({from: userEth});299 ).send({from: userEth});
300 // const events = normalizeEvents(result.events);300 const events = normalizeEvents(result.events);
301301
302 // expect(events).to.be.deep.equal([302 expect(events).to.be.deep.equal([
303 // {303 {
304 // address,304 address,
305 // event: 'Transfer',305 event: 'Transfer',
306 // args: {306 args: {
307 // from: '0x0000000000000000000000000000000000000000',307 from: '0x0000000000000000000000000000000000000000',
308 // to: receiver,308 to: receiver,
309 // tokenId: nextTokenId,309 tokenId: nextTokenId,
310 // },310 },
311 // },311 },
312 // ]);312 ]);
313313
314 // expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('Test URI');314 expect(await contract.methods.tokenURI(nextTokenId).call()).to.be.equal('Test URI');
315 }315 }
316316
317 });317 });