diff --git a/tests/state_test_util.go b/tests/state_test_util.go index 3ecfeeefed27..0ee5805c17fd 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -312,8 +312,10 @@ func (t *StateTest) RunNoVerify(subtest StateSubtest, vmconfig vm.Config, snapsh context.Difficulty = big.NewInt(0) } if config.IsCancun(new(big.Int), block.Time()) && t.json.Env.ExcessBlobGas != nil { - header := block.Header() - header.ExcessBlobGas = t.json.Env.ExcessBlobGas + header := &types.Header{ + Time: block.Time(), + ExcessBlobGas: t.json.Env.ExcessBlobGas, + } context.BlobBaseFee = eip4844.CalcBlobFee(config, header) }