Skip to content

Commit fa3ce43

Browse files
committed
test: update maxfeepergas
1 parent d356400 commit fa3ce43

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/integrationTestHelpers/anvilHarnessHelpers.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
Hex,
99
http,
1010
parseEther,
11+
parseGwei,
1112
} from 'viem';
1213
import { generatePrivateKey, privateKeyToAccount } from 'viem/accounts';
1314
import { sepolia } from 'viem/chains';
@@ -133,9 +134,7 @@ export function createAccount(privateKey?: Hex): PrivateKeyAccountWithPrivateKey
133134
}
134135

135136
export function createBlockAdvancer(params: CreateBlockAdvancerParams): BlockAdvancer {
136-
let blockAdvancer!: BlockAdvancer;
137-
138-
blockAdvancer = {
137+
const blockAdvancer: BlockAdvancer = {
139138
...params,
140139
async stop() {
141140
const state = blockAdvancingStates.get(blockAdvancer);
@@ -338,6 +337,8 @@ export async function configureL2Fees(
338337
chain: walletClient.chain,
339338
to: arbOwnerAddress,
340339
gas: 4_000_000n,
340+
maxFeePerGas: parseGwei('0.1'),
341+
maxPriorityFeePerGas: 0n,
341342
data: encodeFunctionData({
342343
abi: arbOwnerABI,
343344
functionName,
@@ -405,9 +406,7 @@ export async function advanceBlock(params: {
405406
await params.publicClient.waitForTransactionReceipt({ hash });
406407
}
407408

408-
export function startBlockAdvancing(
409-
blockAdvancer: BlockAdvancer,
410-
): void {
409+
export function startBlockAdvancing(blockAdvancer: BlockAdvancer): void {
411410
if (blockAdvancingStates.has(blockAdvancer)) {
412411
return;
413412
}

src/integrationTestHelpers/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const testConstants = {
2828
'function createRetryableTicketNoRefundAliasRewrite(address to,uint256 l2CallValue,uint256 maxSubmissionCost,address excessFeeRefundAddress,address callValueRefundAddress,uint256 gasLimit,uint256 maxFeePerGas,bytes data) payable returns (uint256)',
2929
]),
3030
LOW_L2_FEE_OVERRIDES: {
31-
maxFeePerGas: ethers.BigNumber.from(2),
31+
maxFeePerGas: ethers.utils.parseUnits('0.1', 'gwei'),
3232
maxPriorityFeePerGas: ethers.BigNumber.from(0),
3333
},
3434
NITRO_DEPLOY_POLLING_INTERVAL_MS: 100,

0 commit comments

Comments
 (0)