Skip to content

Commit f081d80

Browse files
authored
fix: use current base fee for public fee payment (#10230)
As #10172 got merged right after #10176 it had not run the new test against the updated master so the issue with fee payment was not caught. To fix it, we fetch the current base fees and use those in our settings.
1 parent 15ffeea commit f081d80

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

yarn-project/end-to-end/src/e2e_fees/public_payments.test.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { type AccountWallet, type AztecAddress, PublicFeePaymentMethod } from '@aztec/aztec.js';
2-
import { type GasSettings } from '@aztec/circuits.js';
2+
import { GasSettings } from '@aztec/circuits.js';
33
import { type TokenContract as BananaCoin, type FPCContract } from '@aztec/noir-contracts.js';
44

55
import { expectMapping } from '../fixtures/utils.js';
@@ -38,12 +38,11 @@ describe('e2e_fees public_payment', () => {
3838

3939
let initialSequencerGas: bigint;
4040

41-
let maxFee: bigint;
42-
4341
beforeEach(async () => {
44-
maxFee = BigInt(20e9);
45-
46-
expect(gasSettings.getFeeLimit().toBigInt()).toEqual(maxFee);
42+
gasSettings = GasSettings.from({
43+
...gasSettings,
44+
maxFeesPerGas: await aliceWallet.getCurrentBaseFees(),
45+
});
4746

4847
[
4948
[initialAlicePublicBananas, initialBobPublicBananas, initialFPCPublicBananas],

0 commit comments

Comments
 (0)