A legal action brought by or against a public entity that arises out of or in connection with the duties of a depository, custodian, or permitted institution under this chapter must be brought and maintained as provided by the contract with the public entity.
Tex. Gov't. Code § 2257.005