From 0fedda8aaa366271eb856751359f8e05ee94721b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Bebi=C4=87=E2=80=AE?= Date: Thu, 20 Jun 2024 14:31:04 +0200 Subject: [PATCH] fix nil ptr errors --- core/state_transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state_transition.go b/core/state_transition.go index 56e1b6fcd5..bac15d4586 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -444,7 +444,7 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) { st.state.AddBalance(consensus.SystemAddress, fee) // add extra blob fee reward - if rules.IsCancun { + if rules.IsCancun && st.evm.Context.BlobBaseFee != nil { blobFee := new(big.Int).SetUint64(st.blobGasUsed()) blobFee.Mul(blobFee, st.evm.Context.BlobBaseFee) st.state.AddBalance(consensus.SystemAddress, blobFee)