Both are correct, but for past simple sentences only "was" is correct. I was very happy to see my friends. I were is the subjunctive form, and it is mainly used in conditional sentences such as: If I were you, I wouldn't answer the phone.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.