Hello and welcome to FF! How long was the worm and what is frog length from snout to vent? Those worms are like candy to Pacmans, myself would only feed as a treat.

Canadian night crawlers (not dyed from bait shop) are the best food you can give your frog. Depending on frog size you might need to cut to mouth size bits (froglets to 2 in.); body length (2-3 in. juveniles); or full size. Cut worm with scissors from pointy end. Good luck !