difftreelog
fix(test) use getFreeBalance instead of long line
in: master
1 file changed
tests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth1235 scheduleMethod,1235 scheduleMethod,1236 );1236 );123712371238 const recipientBalanceBefore = (await api.query.system.account(recipient.address)).data.free.toBigInt();1238 const recipientBalanceBefore = await getFreeBalance(recipient);123912391240 // sleep for n + 1 blocks1240 // sleep for n + 1 blocks1241 await waitNewBlocks(blocksBeforeExecution + 1);1241 await waitNewBlocks(blocksBeforeExecution + 1);124212421243 const recipientBalanceAfter = (await api.query.system.account(recipient.address)).data.free.toBigInt();1243 const recipientBalanceAfter = await getFreeBalance(recipient);124412441245 expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal(normalizeAccountId(recipient.address));1245 expect(await getTokenOwner(api, collectionId, tokenId)).to.be.deep.equal(normalizeAccountId(recipient.address));1246 expect(recipientBalanceAfter).to.be.equal(recipientBalanceBefore);1246 expect(recipientBalanceAfter).to.be.equal(recipientBalanceBefore);