Skip to content

Commit

Permalink
chore: Fix and reenable e2e account init fees test
Browse files Browse the repository at this point in the history
Similar fix to #5877. Let's see if this fails on CI now...
  • Loading branch information
spalladino committed Apr 19, 2024
1 parent 165e62f commit 7989d89
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { GasPortalTestingHarnessFactory, type IGasBridgingTestHarness } from './
const TOKEN_NAME = 'BananaCoin';
const TOKEN_SYMBOL = 'BC';
const TOKEN_DECIMALS = 18n;
const BRIDGED_FPC_GAS = 444n;
const BRIDGED_FPC_GAS = BigInt(10e12);

jest.setTimeout(1000_000);

Expand Down Expand Up @@ -125,13 +125,8 @@ describe('e2e_fees_account_init', () => {
afterAll(() => ctx.teardown());

beforeEach(() => {
gasSettings = GasSettings.from({
gasLimits: { daGas: 2, l1Gas: 2, l2Gas: 2 },
teardownGasLimits: { daGas: 1, l1Gas: 1, l2Gas: 1 },
maxFeesPerGas: { feePerDaGas: Fr.ONE, feePerL1Gas: Fr.ONE, feePerL2Gas: Fr.ONE },
inclusionFee: new Fr(5),
});
maxFee = 3n * 3n + 5n;
gasSettings = GasSettings.default();
maxFee = gasSettings.getFeeLimit().toBigInt();
actualFee = 1n;
bobsSecretKey = Fr.random();
bobsPrivateSigningKey = Fq.random();
Expand Down Expand Up @@ -168,7 +163,7 @@ describe('e2e_fees_account_init', () => {
describe('privately through an FPC', () => {
let mintedPrivateBananas: bigint;
beforeEach(async () => {
mintedPrivateBananas = 42n;
mintedPrivateBananas = BigInt(1e12);

// TODO the following sequence of events ends in a timeout
// 1. pxe.registerRecipient (aka just add the public key so pxe can encrypt notes)
Expand Down Expand Up @@ -243,7 +238,7 @@ describe('e2e_fees_account_init', () => {
let mintedPublicBananas: bigint;

beforeEach(async () => {
mintedPublicBananas = 37n;
mintedPublicBananas = BigInt(1e12);
await bananaCoin.methods.mint_public(bobsAddress, mintedPublicBananas).send().wait();
});

Expand Down

0 comments on commit 7989d89

Please sign in to comment.