Sebastien Haller scored two first-half goals to help a much-changed West Ham beat League One Charlton in the second round of the Carabao Cup.
The Frenchman tapped home Andriy Yarmolenko's pass across goal and added a fine headed second from a precise Robert Snodgrass cross.
Chuks Aneke and Jonny Williams forced saves from Darren Randolph as Charlton had a positive spell after the break.
But Felipe Anderson sealed the win after good work from Manuel Lanzini.
David Moyes' Hammers will host either fellow Premier League side Leeds or League One Hull in the third round.