difftreelog
CORE-300 Add comments
in: master
1 file changed
tests/src/eth/contractSponsoring.test.tsdiffbeforeafterboth245 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);247247248 {248 { // This part should fail, because user not in access list and user have no money249 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);301301302 // 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 ]);313313314 // 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 }316316317 });317 });