As a contractor, you do not enjoy the same kinds of protection that an employee does. Nor is discussing pay with the end client equivalent to discussing it with a fellow employee. Maybe if you had been discussing it with fellow contractor it might match some of what the article was talking about.
I'm surprised that your contract did not include an NDA that prevented you from discussing this kind of information with the end client.