This question already has an answer here:
- Could the gold actually kill Smaug? 6 answers
Thorin was successful in causing Smaug a great deal of agony, but the molten gold was ineffective beyond that. Smaug is obviously capable of dishing out extreme temperature, so why did Thorin believe that he could be killed by it?