Dumping JRich's contract was a good move. Players like him are easily replaceable. He is really nothing but a good shooter. He's not particularly good at defense, rebounding, passing, or driving to the hoop. He shoots well, and makes an occasional fantastic dunk. The Warriors were in desperate need of a presence in the middle. Whether Wright becomes that, or they trade him for someone who is (Garnett?), or they use the cap space freed up to sign someone who is, the Warriors will come out ahead.
Futhermore, they will be much more enabled to resign Barnes, who is a much better all-around player than JRich. Also, their other 1st round pick, Bellinelli, is supposed to be a serious 3-point sharpshooter, which should greatly lessen the impact of losing JRich's scoring.
On the other side, JRich will help Charlotte, but I think the cost, both in terms of his salary, and giving up perhaps the 3rd best player in the draft, is too high for a guy with too limited a skillset.