2008 Toyota Corolla after jumping battery received check engine light with error codes p0340 and p0335

P0340 camshaft position sensor a circuit (bank1 or single sensor) and p0335 crankshaft position sensor a circuit

These weren’t there before the battery died . I read this may not be accurate because of the jumpstart . Is this a problem ?

Could be a fluke due to the jumpstarting.Remove the negative battery terminal and wait a few hours before hooking it back.Hopefully, the code will be gone.