Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions yarn-project/end-to-end/src/e2e_bot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ describe('e2e_bot', () => {

afterAll(() => teardown());

let privateKeyIndex = 10;
const getPrivateKey = () => new SecretValue(bufferToHex(getPrivateKeyFromIndex(privateKeyIndex++)!));

describe('transaction-bot', () => {
let bot: Bot;
beforeAll(async () => {
Expand Down Expand Up @@ -131,8 +134,7 @@ describe('e2e_bot', () => {

l1RpcUrls,
feePaymentMethod: 'fee_juice',
// TODO: this should be taken from the `setup` call above
l1Mnemonic: new SecretValue('test test test test test test test test test test test junk'),
l1PrivateKey: getPrivateKey(),
flushSetupTransactions: true,
// Increase fee headroom to handle fee volatility from rapid block building in tests.
// Fees can escalate >10x due to blocks built by earlier tests and bridge operations.
Expand Down Expand Up @@ -172,8 +174,7 @@ describe('e2e_bot', () => {

l1RpcUrls,
feePaymentMethod: 'fee_juice',
// TODO: this should be taken from the `setup` call above
l1Mnemonic: new SecretValue('test test test test test test test test test test test junk'),
l1PrivateKey: getPrivateKey(),
flushSetupTransactions: true,
// Increase fee headroom to handle fee volatility from rapid block building in tests.
// This test is especially susceptible because changing salt triggers a new bridge claim,
Expand Down Expand Up @@ -238,7 +239,7 @@ describe('e2e_bot', () => {
followChain: 'PROPOSED',
botMode: 'transfer',
senderPrivateKey: new SecretValue(Fr.random()),
l1PrivateKey: new SecretValue(bufferToHex(getPrivateKeyFromIndex(8)!)),
l1PrivateKey: getPrivateKey(),
l1RpcUrls,
flushSetupTransactions: true,
};
Expand All @@ -261,7 +262,7 @@ describe('e2e_bot', () => {
followChain: 'PROPOSED',
botMode: 'crosschain',
l1RpcUrls,
l1PrivateKey: new SecretValue(bufferToHex(getPrivateKeyFromIndex(9)!)),
l1PrivateKey: getPrivateKey(),
flushSetupTransactions: true,
l1ToL2SeedCount: 2,
};
Expand Down
Loading