difftreelog
CORE-302 Remove unused ABI
in: master
4 files changed
tests/src/eth/fungible.test.tsdiffbeforeafterboth363 });363 });364});364});365365366describe('Fungible metadata', () => {367 itWeb3('Returns fungible decimals', async ({api, web3}) => {368 const collection = await createCollectionExpectSuccess({369 mode: {type: 'Fungible', decimalPoints: 6},370 });371 const caller = await createEthAccountWithBalance(api, web3);372373 const address = collectionIdToAddress(collection);374 const contract = new web3.eth.Contract(fungibleAbi as any, address, {from: caller, ...GAS_ARGS});375 const decimals = await contract.methods.decimals().call();376377 expect(+decimals).to.equal(6);378 });379});tests/src/eth/fungibleMetadataAbi.jsondiffbeforeafterbothno changes
tests/src/eth/metadata.test.tsdiffbeforeafterbothno changes
tests/src/eth/nonFungible.test.tsdiffbeforeafterboth540 });540 });541});541});542542543describe('Common metadata', () => {544 itWeb3('Returns collection name', async ({api, web3}) => {545 const collection = await createCollectionExpectSuccess({546 name: 'token name',547 mode: {type: 'NFT'},548 });549 const caller = await createEthAccountWithBalance(api, web3);550551 const address = collectionIdToAddress(collection);552 const contract = new web3.eth.Contract(nonFungibleAbi as any, address, {from: caller, ...GAS_ARGS});553 const name = await contract.methods.name().call();554555 expect(name).to.equal('token name');556 });557558 itWeb3('Returns symbol name', async ({api, web3}) => {559 const collection = await createCollectionExpectSuccess({560 tokenPrefix: 'TOK',561 mode: {type: 'NFT'},562 });563 const caller = await createEthAccountWithBalance(api, web3);564565 const address = collectionIdToAddress(collection);566 const contract = new web3.eth.Contract(nonFungibleAbi as any, address, {from: caller, ...GAS_ARGS});567 const symbol = await contract.methods.symbol().call();568569 expect(symbol).to.equal('TOK');570 });571});