I’m an electrician. It is too late but for future reference all new work must be done up to code. An electric dryer requires 10/3 on a 30A breaker that is listed for the panel.
While this is not code compliant, 10/2 will still work but requires you to install the jumper from the neutral to the ground inside the dryer itself.