US Constitution, Article 1, Section 9 (limitations on Congress):
No Tax or Duty shall be laid on Articles exported from any State.
Yes, it was unconstitutional.