Skip to content

Commit

Permalink
more tx without fees
Browse files Browse the repository at this point in the history
  • Loading branch information
dvush committed Mar 1, 2021
1 parent caee29d commit 612369a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions core/tests/ts-tests/tests/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,22 +154,28 @@ Tester.prototype.testInvalidFeeBatch = async function (
// Ignore the second transfer.
const fee = await this.syncProvider.getTransactionsBatchFee(['Transfer'], [receiver.address()], token);

const tx_with_fee = {
const txWithFee = {
to: receiver.address(),
token,
amount,
fee
};
const tx_without_fee = {
const txWithoutFee = {
to: receiver.address(),
token,
amount,
fee: 0
};

const multiTransfer = [];
for (let i = 0; i < 10; ++i) {
multiTransfer.push(txWithoutFee);
}
multiTransfer.push(txWithFee);

let thrown = true;
try {
const handles = await sender.syncMultiTransfer([tx_without_fee, tx_with_fee]);
const handles = await sender.syncMultiTransfer(multiTransfer);
for (const handle of handles) {
await handle.awaitVerifyReceipt();
}
Expand Down

0 comments on commit 612369a

Please sign in to comment.