Skip to content

Commit

Permalink
handle case where fees are null for a chain (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzman authored Aug 14, 2023
1 parent c08318a commit 01a0d7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/Components/Monitor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ class ChainSummaryComponent extends Component {
// Optimism specific calculations
const price = calculatedFees?.actualFee || gasPrice

const ethBaseFee = this.store('main.networksMeta.ethereum', 1, 'gas.price.fees.nextBaseFee')
const feeMarket = this.store('main.networksMeta.ethereum', 1, 'gas.price.fees') || {}
const { nextBaseFee: ethBaseFee } = feeMarket

const optimismEstimate = (serializedTx, l2Limit) => {
const l1Estimate = BigNumber(calculateOptimismL1DataFee(serializedTx, ethBaseFee)).shiftedBy(-9)
Expand Down

0 comments on commit 01a0d7c

Please sign in to comment.