Yea, it is assumed that the defending state is in a state of war as well. Example, six days war. There was no declaration of war, but a treaty was still needed.