From 1e478b5de4e715132153ee8266565abfc53a60df Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Fri, 4 Apr 2025 19:00:34 -0300 Subject: [PATCH] chore: Fix expected revert reason in private payment test Fix test after change introduced in #13288. This didnt fire in the PR since the test was a flake. --- yarn-project/end-to-end/src/e2e_fees/private_payments.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yarn-project/end-to-end/src/e2e_fees/private_payments.test.ts b/yarn-project/end-to-end/src/e2e_fees/private_payments.test.ts index 8dc813c26d75..385d01e08d00 100644 --- a/yarn-project/end-to-end/src/e2e_fees/private_payments.test.ts +++ b/yarn-project/end-to-end/src/e2e_fees/private_payments.test.ts @@ -9,6 +9,7 @@ import { import { FPCContract } from '@aztec/noir-contracts.js/FPC'; import type { TokenContract as BananaCoin } from '@aztec/noir-contracts.js/Token'; import { GasSettings } from '@aztec/stdlib/gas'; +import { TX_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE } from '@aztec/stdlib/tx'; import { expectMapping } from '../fixtures/utils.js'; import { FeesTest } from './fees_test.js'; @@ -313,7 +314,7 @@ describe('e2e_fees private_payment', () => { }, }) .wait(), - ).rejects.toThrow('Tx dropped by P2P node.'); + ).rejects.toThrow(TX_ERROR_INSUFFICIENT_FEE_PAYER_BALANCE); }); // TODO(#7694): Remove this test once the lacking feature in TXE is implemented.