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 729fb1b commit d91f408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/celotool/src/e2e-tests/transfer_tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ 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 d91f408

Please sign in to comment.