Skip to content

Commit

Permalink
Allow gatewayFeeRecipient to be omitted if empty (#10985)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlb authored Jun 25, 2024
1 parent 729fb1b commit cfe8a4b
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 @@ -466,7 +466,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 cfe8a4b

Please sign in to comment.