Nothing in this part shall be construed to subject any officer of the state to any suit for a refusal on the officer's part to accept, in payment of revenue of the state, any kind or description of funds or securities or papers other than such as the officer may be authorized and required to receive for the time being by law.