Skip to content

Commit

Permalink
Fix error with packable fee. I have no idea why it worked
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed May 14, 2021
1 parent dee03d9 commit cd28341
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/tests/ts-tests/tests/transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Tester } from './tester';
import { expect } from 'chai';
import { Wallet, types } from 'zksync';
import { BigNumber } from 'ethers';
import { closestPackableTransactionFee } from '../../../../sdk/zksync.js';

type TokenLike = types.TokenLike;

Expand Down Expand Up @@ -126,7 +127,7 @@ Tester.prototype.testIgnoredBatch = async function (
to: receiver.address(),
token,
amount,
fee: fee.div(2)
fee: closestPackableTransactionFee(fee.div(2))
};

const senderBefore = await sender.getBalance(token);
Expand Down

0 comments on commit cd28341

Please sign in to comment.