(1) The provisions on the purchase of an inheritance apply accordingly to the purchase of an inheritance acquired by the seller contractually, and to other contracts the purpose of which is the alienation of an inheritance which has devolved to the alienor or which has been acquired by them in another way.
(2) In the case of a donation, the giver is not obliged to compensate for any objects of the estate that were consumed or alienated gratuitously before the donation was made, nor for any charge upon such objects created gratuitously before the donation. The obligation specified in section 2376 concerning the warranty for defects of title does not affect the giver; if the giver has fraudulently concealed a defect, they are obliged to compensate the recipient of the gift for the damage arising from it.