Skip to content

Commit

Permalink
Allow gatewayFeeRecipient to be omitted if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
karlb committed Jun 25, 2024
1 parent 52f595a commit 306a5ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/celotool/src/e2e-tests/transfer_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ describe('Transfer tests', function (this: any) {
const txFeeBase = new BigNumber(gasVal).times(minGasPrice)
const txFeeTip = txFee.minus(txFeeBase)
const gatewayFee = new BigNumber(tx.gatewayFee || 0)
assert.equal(tx.gatewayFeeRecipient === null, gatewayFee.eq(0))
assert.equal(
tx.gatewayFeeRecipient === null || tx.gatewayFeeRecipient === undefined,
gatewayFee.eq(0)
)

const fees: Fees = {
total: txFee.plus(gatewayFee),
Expand Down

0 comments on commit 306a5ab

Please sign in to comment.