difftreelog
chore add test for rft2nft
in: master
1 file changed
tests/src/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth299 await expect(fractionalizer.methods.rft2nft(rftCollectionAddress, rftTokenId).send()).to.be.eventually.rejected;299 await expect(fractionalizer.methods.rft2nft(rftCollectionAddress, rftTokenId).send()).to.be.eventually.rejected;300 });300 });301302 itWeb3('call rft2nft for RFT token that was not minted by fractionalizer contract', async ({api, web3, privateKeyWrapper}) => {303 const owner = await createEthAccountWithBalance(api, web3, privateKeyWrapper);304 const {collectionIdAddress: rftCollectionAddress} = await createRefungibleCollection(api, web3, owner);305306 const fractionalizer = await deployFractionalizer(api, web3, owner);307 const refungibleContract = uniqueRefungible(web3, rftCollectionAddress, owner);308309 await refungibleContract.methods.addCollectionAdmin(fractionalizer.options.address).send();310 await fractionalizer.methods.setRFTCollection(rftCollectionAddress).send();311312 const rftTokenId = await refungibleContract.methods.nextTokenId().call();313 await refungibleContract.methods.mint(owner, rftTokenId).send();314 315 await expect(await fractionalizer.methods.rft2nft(rftCollectionAddress, rftTokenId).send()).to.be.eventually.rejected;316 });301317302 itWeb3('call rft2nft without owning all RFT pieces', async ({api, web3, privateKeyWrapper}) => {318 itWeb3('call rft2nft without owning all RFT pieces', async ({api, web3, privateKeyWrapper}) => {303 const owner = await createEthAccountWithBalance(api, web3, privateKeyWrapper);319 const owner = await createEthAccountWithBalance(api, web3, privateKeyWrapper);