I also have 5A345, I've had no problems, so need need in restoring.
I think 5A345 is the right build, attached is a screen shot of the About page of an iPhone 3G that was in store, and the build is 5A345. I believe 5A345 is the proper build, not 5A347 like what everyone else is saying.
