Is law of conservation of energy violated here?

“When a body is moving with uniform speed on a rough surface under the application of a constant external force and an equal and opposite frictional force, the work done by both the forces should be equal. as a result, the net work done by both the forces should be zero. however, we find that [...]