From 306a5abd30ce9b4cb47cd8106de8094912edaa2b Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Tue, 30 Apr 2024 10:44:57 +0200 Subject: [PATCH] Allow gatewayFeeRecipient to be omitted if empty See https://github.com/celo-org/celo-blockchain/pull/2302 --- packages/celotool/src/e2e-tests/transfer_tests.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/celotool/src/e2e-tests/transfer_tests.ts b/packages/celotool/src/e2e-tests/transfer_tests.ts index d465fdfb3e4..1d61ef7f6e8 100644 --- a/packages/celotool/src/e2e-tests/transfer_tests.ts +++ b/packages/celotool/src/e2e-tests/transfer_tests.ts @@ -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),