Inner chainring bent on 6 week old MTB
This could have also been a loose mounting bolt causing the excessive gap.  So here's the way warranty works.  The bike shop looks at your bike.  They make a recommendation to the manufacturer about what caused the defect.  If they believe it was


loose bolts on the small sprocket from the factory
slightly bent sprocket from the factory, made worse by the chain falling off 
wrong chain used for the application (8,9,10 + sprocket chain width)


and they manufacturer says yes, they will re-imburse your local bike shop for the repair then you have a winner.  In some cases the manufacturer says no, they didn't cause that defect.  In that case the bike shop could build goodwill with you by repairing it at their cost to keep you as a happy customer. Talk to your bike shop.  DONT touch the area with tools at all (let the bike shop to that as part of fault assessment...)  Work with your bike shop to come to a resolve that makes everyone happy.  

If that fails, and the bike shop says sorry, you are out of luck in obtaining a free repair there are always other options.  If you are a do it yourself person, you could remove the right side crank, remove the small sprocket, and bend it flat again (if its steel).  If its aluminum, toss it and get a new sprocket.  They really don't cost very much.