The cold line is the line on the right as you are standing in front of the heater.
Turn on the hot water at any faucet for 1 min. then feel the pipes coming out of the heater. The one on the left should be hot. If the one on the right is hot it is plumbed backwards