Can you get H1B stamped on Canada Passport if applied with Indian Passport?

I am filing for H1B application using Indian passport since I am currently Indian citizen. However, I have Canadian citizenship application in progress and once that is approved - I would be eligible to apply for Canadian passport.

My questions are for below situations:

  1. What happens if my application is selected and visa is stamped on Indian passport and later on I have Canadian passport?
  2. What happens if my application is selected and visa is NOT yet issued and I now have Canadian passport?

Canadian citizen do not need visa to enter the US. You can show the H1B/H4 I-797 and canadian passport at the POE and the CBP will issue I-94.