He was rewarded by the presidency of the legislative commission formed by Napoleon to draw up the new constitution; and as president of the legislative section of the council of state he examined and revised the draft of the civil code.