If the state treasurer wilfully refuses to pay except in accordance with the provisions of RCW
43.08.070 or by cash or check any warrant designated as payable in the state treasurer's office which is lawfully drawn upon the state treasury, or knowingly pays any warrant otherwise than as provided by law, then any person injured thereby may recover by action against the treasurer and the sureties on his or her official bond.