From e372311a9c4938f6e1560d75badf79643f0d5107 Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Wed, 28 Jan 2026 15:35:02 +0100 Subject: [PATCH] eth/gasprice: fix testcase --- eth/gasprice/gasprice.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index 06abd5a34a..a922eab675 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -259,7 +259,9 @@ func (oracle *Oracle) getBlockValues(ctx context.Context, blockNum uint64, limit copy(sortedTxs, txs) baseFee := block.BaseFee() baseFee256 := new(uint256.Int) - baseFee256.SetFromBig(baseFee) + if baseFee != nil { + baseFee256.SetFromBig(baseFee) + } slices.SortFunc(sortedTxs, func(a, b *types.Transaction) int { return a.EffectiveGasTipCmp(b, baseFee256) })