Is H1B still valid if citizenship changes?

Is H1B still valid if I become citizen of country B? Consider that H1B was initially approved when I was citizen of country A. Or it is required to get another H1B (fresh)? Or it requires amendment?

Also I am talking about H1B with I-129, not H1B with I-140.