Skip to content

Commit

Permalink
feat: use separate L2 account transaction exclusion e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesho committed Oct 14, 2024
1 parent 348807a commit 4b12103
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions e2e/env-setup/custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ declare global {
var L1_ACCOUNT_0_PRIVATE_KEY: string;
var L2_ACCOUNT_0_PRIVATE_KEY: string;
var L2_ACCOUNT_1_PRIVATE_KEY: string;
var L2_ACCOUNT_2_PRIVATE_KEY: string;
var L1_DEPLOYER_ACCOUNT_PRIVATE_KEY: string;
var L2_DEPLOYER_ACCOUNT_PRIVATE_KEY: string;
var TRANSACTION_CALLDATA_LIMIT: number;
Expand Down
2 changes: 2 additions & 0 deletions e2e/env-setup/setup-local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
L1_ACCOUNT_0_PRIVATE_KEY,
L2_ACCOUNT_0_PRIVATE_KEY,
L2_ACCOUNT_1_PRIVATE_KEY,
L2_ACCOUNT_2_PRIVATE_KEY,
TRANSACTION_CALLDATA_LIMIT,
OPERATOR_0_PRIVATE_KEY,
SHOMEI_ENDPOINT,
Expand Down Expand Up @@ -93,6 +94,7 @@ beforeAll(async () => {
global.L1_ACCOUNT_0_PRIVATE_KEY = L1_ACCOUNT_0_PRIVATE_KEY;
global.L2_ACCOUNT_0_PRIVATE_KEY = L2_ACCOUNT_0_PRIVATE_KEY;
global.L2_ACCOUNT_1_PRIVATE_KEY = L2_ACCOUNT_1_PRIVATE_KEY;
global.L2_ACCOUNT_2_PRIVATE_KEY = L2_ACCOUNT_2_PRIVATE_KEY;
global.L1_DEPLOYER_ACCOUNT_PRIVATE_KEY = L1_DEPLOYER_ACCOUNT_PRIVATE_KEY;
global.L2_DEPLOYER_ACCOUNT_PRIVATE_KEY = L2_DEPLOYER_ACCOUNT_PRIVATE_KEY;
global.TRANSACTION_CALLDATA_LIMIT = TRANSACTION_CALLDATA_LIMIT;
Expand Down
4 changes: 2 additions & 2 deletions e2e/src/transaction-exclusion.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const transactionExclusionTestSuite = (title: string) => {
return;
}

const account = new Wallet(L2_ACCOUNT_1_PRIVATE_KEY, l2BesuNodeProvider);
const account = new Wallet(L2_ACCOUNT_2_PRIVATE_KEY, l2BesuNodeProvider);

const [nonce, feeData] = await Promise.all([
l2Provider.getTransactionCount(account.address),
Expand Down Expand Up @@ -59,7 +59,7 @@ const transactionExclusionTestSuite = (title: string) => {
return;
}

const account = new Wallet(L2_ACCOUNT_1_PRIVATE_KEY, sequencerProvider);
const account = new Wallet(L2_ACCOUNT_2_PRIVATE_KEY, sequencerProvider);

const [nonce, feeData] = await Promise.all([
l2Provider.getTransactionCount(account.address),
Expand Down
1 change: 1 addition & 0 deletions e2e/src/utils/constants.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const L2_ACCOUNT_0 = "0xfe3b557e8fb62b89f4916b721be55ceb828dbd73";
// WARNING: FOR LOCAL DEV ONLY - DO NOT REUSE THESE KEYS ELSEWHERE
export const L2_ACCOUNT_0_PRIVATE_KEY = "0x8f2a55949038a9610f50fb23b5883af3b4ecb3c3bb792cbcefbd1542c692be63";
export const L2_ACCOUNT_1_PRIVATE_KEY = "0xc87509a1c067bbde78beb793e6fa76530b6382a4c0241e5e4a9ec0a0f44dc0d3";
export const L2_ACCOUNT_2_PRIVATE_KEY = "ae6ae8e5ccbfb04590405997ee2d52d2b330726137b875053c36d94e974d162f";

export const OPERATOR_0 = "0x70997970C51812dc3A010C7d01b50e0d17dc79C8";
// WARNING: FOR LOCAL DEV ONLY - DO NOT REUSE THESE KEYS ELSEWHERE
Expand Down

0 comments on commit 4b12103

Please sign in to comment.