I could be wrong but it looks as if the stocks battery configuration design is made for that of the new TM sopmod m4. However I suppose it could work for a standard M4 if TM has not changed any of its original design dimensions. Your best shot would be to contact uncompany and ask them directly.
uncompany is a good reliable retailer.
"Its only a little bit on fire"