git.delta.rocks / unique-network / refs/commits / 1f0d81d5f19f

difftreelog

fix(test) use getFreeBalance instead of long line

Daniel Shiposha2022-08-17parent: #d0295dc.patch.diff
in: master

1 file changed

modifiedtests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth
1235 scheduleMethod,1235 scheduleMethod,
1236 );1236 );
12371237
1238 const recipientBalanceBefore = (await api.query.system.account(recipient.address)).data.free.toBigInt();1238 const recipientBalanceBefore = await getFreeBalance(recipient);
12391239
1240 // sleep for n + 1 blocks1240 // sleep for n + 1 blocks
1241 await waitNewBlocks(blocksBeforeExecution + 1);1241 await waitNewBlocks(blocksBeforeExecution + 1);
12421242
1243 const recipientBalanceAfter = (await api.query.system.account(recipient.address)).data.free.toBigInt();1243 const recipientBalanceAfter = await getFreeBalance(recipient);
12441244
1245 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);