Where there was a contract to supply oilseeds but the Government rendered the sale and purchase of oil-seed illegal under the Defence of India Rules-By this act of Government both parties are discharged from the performance of such contract.
Section 56 of the Indian Contract Act, 1872 deals with agreement to do impossible act. It states that-An agreement to do an act impossible in itself is void.
Contract to do an act afterwards becoming impossible or unlawful. A contract to do an act which, after the contract is made, becomes impossible, or, by reason of some event which the promisor could not prevent, unlawful, becomes void when the act becomes impossible or unlawful.