From f96b8d32eea38f903a8b0711c16a726c514b16ce Mon Sep 17 00:00:00 2001 From: mouseless <97399882+mouseless-eth@users.noreply.github.com> Date: Sat, 11 Jan 2025 14:28:52 +0000 Subject: [PATCH] fix type --- src/handlers/optimismManager.ts | 2 +- src/utils/validation.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers/optimismManager.ts b/src/handlers/optimismManager.ts index f0a03e29..1df7e7ad 100644 --- a/src/handlers/optimismManager.ts +++ b/src/handlers/optimismManager.ts @@ -68,7 +68,7 @@ export class OptimismManager { } public getMinL1Fee() { - return this.l1FeeQueue.getMinValue() || 1 + return this.l1FeeQueue.getMinValue() || 1n } public getMaxL2PriorityFee(sender: Address) { diff --git a/src/utils/validation.ts b/src/utils/validation.ts index 01c4ac41..1607cfd7 100644 --- a/src/utils/validation.ts +++ b/src/utils/validation.ts @@ -619,7 +619,7 @@ export async function calcOptimismPreVerificationGas( const [l1Fee, baseFeePerGas] = await Promise.all([ validate - ? BigInt(gasPriceManager.optimismManager.getMinL1Fee()) + ? gasPriceManager.optimismManager.getMinL1Fee() : opGasPriceOracle.read.getL1Fee([serializedTx]), validate ? gasPriceManager.getMaxBaseFeePerGas()