Sir, wages to contract worker are paid by the contractor and ultimately, it is for the principal employer to reimburse the wages in the shape of bill received from the contractor.
It appears that your question or the issue you raised is not clear. Hope you will clarify whether ESI Act, 1948 is applicable in your unit.