When grants of real property shall have been issued or made by the state and the same shall be declared void by the determination of a competent court, rendered upon an allegation of a fraudulent suggestion, or concealment, or forfeiture, or mistake, or ignorance of a material fact, or wrongful detaining, or defective title, an action for the recovery of the premises so conveyed may be brought either by the state or by any subsequent grantee of the same premises, his heirs or assigns, within twenty years after such determination was made, but not after that period.
SDCL 15-3-6