 The Palace Law was a constituent part of this new legal compendium called "The Three Seals Code", which was needed, Rama I said, because old laws were often misinterpreted and this led to injustice.Succession under the "Three Seals Code" took into account the potential of the next king to be, as prescribed by ancient Buddhist texts, a "dhammaraja" (righteous king).This was manifested in his upholding of the Ten Virtues of Kingship.