Skip to content

Commit

Permalink
feat: updated e2e test for tx exclusion api
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesho committed Oct 3, 2024
1 parent 0526fd4 commit e29b83a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions e2e/src/transaction-exclusion.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { afterAll, beforeAll, describe, expect, it } from "@jest/globals";
import { execDockerCommand, execShellCommand, TransactionExclusionClient, wait } from "./utils/utils";
import { execDockerCommand, TransactionExclusionClient, wait } from "./utils/utils";
import { Wallet } from "ethers";
import { getAndIncreaseFeeData } from "./utils/helpers";

Expand Down Expand Up @@ -77,8 +77,6 @@ const transactionExclusionTestSuite = (title: string) => {
return;
}

await execShellCommand("docker exec sequencer cat /var/lib/besu/traces-limits-reduced.toml");

const account = new Wallet(L2_DEPLOYER_ACCOUNT_PRIVATE_KEY, l2Provider);

const [nonce, feeData] = await Promise.all([
Expand All @@ -88,7 +86,7 @@ const transactionExclusionTestSuite = (title: string) => {

const [maxPriorityFeePerGas, maxFeePerGas] = getAndIncreaseFeeData(feeData);

// This shall be rejected by sequencer due to trace module limit overflow
// This shall be rejected by sequencer due to traces limit overflow (as reduced traces limits)
const tx = await testContract.connect(account).testAddmod(1200, 31, {
nonce,
maxPriorityFeePerGas,
Expand All @@ -102,7 +100,6 @@ const transactionExclusionTestSuite = (title: string) => {
do {
await wait(5_000);
getResponse = await transactionExclusionClient.getTransactionExclusionStatusV1(rejectedTxHash);
console.log(`getResponse: ${JSON.stringify(getResponse)}`);
} while (!getResponse?.result);

expect(getResponse.result.txHash).toStrictEqual(rejectedTxHash);
Expand Down

0 comments on commit e29b83a

Please sign in to comment.