It's less about praising your children, vs being honest with them! Don't give them false praise, and they'll be fine.
“You’re so smart” leaves room for failure when they encounter something that challenges their image of being smart. Praising the amount of effort they put in is not something that is taken away or challenged regardless of the outcome.