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

difftreelog

test(nft) check for name/symbol availability

Yaroslav Bolyukin2022-10-13parent: #9695a43.patch.diff
in: master

1 file changed

modifiedtests/src/eth/nonFungible.test.tsdiffbeforeafterboth
69 expect(owner).to.equal(caller);69 expect(owner).to.equal(caller);
70 });70 });
71
72 itEth('name/symbol is available regardless of ERC721Metadata support', async ({helper}) => {
73 const collection = await helper.nft.mintCollection(alice, {name: 'test', tokenPrefix: 'TEST'});
74 const caller = helper.eth.createAccount();
75
76 const contract = helper.ethNativeContract.collectionById(collection.collectionId, 'nft', caller);
77
78 expect(await contract.methods.name().call()).to.equal('test');
79 expect(await contract.methods.symbol().call()).to.equal('TEST');
80 });
71});81});
7282
73describe('Check ERC721 token URI for NFT', () => {83describe('Check ERC721 token URI for NFT', () => {