Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Jan 11, 2025
1 parent 4d5a32b commit f96b8d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/handlers/optimismManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class OptimismManager {
}

public getMinL1Fee() {
return this.l1FeeQueue.getMinValue() || 1
return this.l1FeeQueue.getMinValue() || 1n
}

public getMaxL2PriorityFee(sender: Address) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f96b8d3

Please sign in to comment.