Skip to content

Commit 08d3ead

Browse files
committed
handle case where fees are null for a chain (#1644)
1 parent 142aa91 commit 08d3ead

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/Components/Monitor/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ class ChainSummaryComponent extends Component {
161161
// Optimism specific calculations
162162
const price = calculatedFees?.actualFee || gasPrice
163163

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

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

0 commit comments

Comments
 (0)