You’re correct in your handling.
The client relationship is established with the living executor, they are the individuals who instruct the solicitor and are legally responsible for administering the estate, paying debts and taxes, and distributing assets to the beneficiaries making