difftreelog
Fix eslint
in: master
1 file changed
tests/src/eth/fractionalizer/fractionalizer.test.tsdiffbeforeafterboth40 ]);40 ]);41 }41 }42 return compiledFractionalizer;42 return compiledFractionalizer;43}43};4444454546const deployContract = async (helper: EthUniqueHelper, owner: string): Promise<Contract> => {46const deployContract = async (helper: EthUniqueHelper, owner: string): Promise<Contract> => {47 const compiled = await compileContract(helper);47 const compiled = await compileContract(helper);48 return await helper.ethContract.deployByAbi(owner, compiled.abi, compiled.object);48 return await helper.ethContract.deployByAbi(owner, compiled.abi, compiled.object);49}49};5050515152const initContract = async (helper: EthUniqueHelper, owner: string): Promise<{contract: Contract, rftCollectionAddress: string}> => {52const initContract = async (helper: EthUniqueHelper, owner: string): Promise<{contract: Contract, rftCollectionAddress: string}> => {57 const result = await fractionalizer.methods.createAndSetRFTCollection('A', 'B', 'C').send({value: Number(2n * helper.balance.getOneTokenNominal())});57 const result = await fractionalizer.methods.createAndSetRFTCollection('A', 'B', 'C').send({value: Number(2n * helper.balance.getOneTokenNominal())});58 const rftCollectionAddress = result.events.RFTCollectionSet.returnValues._collection;58 const rftCollectionAddress = result.events.RFTCollectionSet.returnValues._collection;59 return {contract: fractionalizer, rftCollectionAddress};59 return {contract: fractionalizer, rftCollectionAddress};60}60};616162const mintRFTToken = async (helper: EthUniqueHelper, owner: string, fractionalizer: Contract, amount: bigint): Promise<{62const mintRFTToken = async (helper: EthUniqueHelper, owner: string, fractionalizer: Contract, amount: bigint): Promise<{63 nftCollectionAddress: string, nftTokenId: number, rftTokenAddress: string63 nftCollectionAddress: string, nftTokenId: number, rftTokenAddress: string76 nftTokenId: _tokenId,76 nftTokenId: _tokenId,77 rftTokenAddress: _rftToken,77 rftTokenAddress: _rftToken,78 };78 };79}79};8080818182describe('Fractionalizer contract usage', () => {82describe('Fractionalizer contract usage', () => {