A. Governmental entities are granted immunity from actions based on contract, except actions based on a valid written contract. B. Every claim permitted by this section shall be forever barred unless brought within two years from the time of accrual. History: 1953 Comp., § 22-23-1, enacted by Laws 1976, ch. 58, § 24.